第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

node里https模塊出現(xiàn)

node里https模塊出現(xiàn)

代小代 2016-09-04 12:50:19
fs.js:427? return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);?? ? ? ? ? ? ? ? ^Error: ENOENT, no such file or directory 'ssh_key.pem'? ? at Object.fs.openSync (fs.js:427:18)? ? at Object.fs.readFileSync (fs.js:284:15)? ? at Object.<anonymous> (/Users/lichao/Desktop/nodeStudy/https.js:5:9)? ? at Module._compile (module.js:456:26)? ? at Object.Module._extensions..js (module.js:474:10)? ? at Module.load (module.js:356:32)? ? at Function.Module._load (module.js:312:12)? ? at Function.Module.runMain (module.js:497:10)? ? at startup (node.js:119:16)? ? at node.js:902:3源碼為:var https=require('https');var fs=require('fs');var options={ key:fs.readFileSync('ssh_key.pem'), cert:fs.readFileSync('ssh_cert.pem')}https.createServer(options,function(req,res){ res.writeHead(200); res.end('Hello zhdail')}).listen('8080')
查看完整描述

3 回答

已采納
?
_瀟瀟暮雨

TA貢獻(xiàn)646條經(jīng)驗(yàn) 獲得超225個(gè)贊

文件路徑有問題吧,當(dāng)前目錄是./

查看完整回答
1 反對(duì) 回復(fù) 2016-09-04
  • 3 回答
  • 0 關(guān)注
  • 2254 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)