鍍金池/ 問答/ Linux問答
使勁操 回答

1.運(yùn)行node --version 看node安裝正確不
2.運(yùn)行npm --version 看npm安裝正確不
都正確的話 先用npm安裝cnpm 然后用cnpm安裝試試

笨笨噠 回答

你這邊貌似 一個(gè)是2個(gè)參數(shù) 一個(gè)是3個(gè)參數(shù)

尐懶貓 回答

ip你綁定的是localhost吧

只愛你 回答

證實(shí)是由于JRE的一個(gè)已知BUG導(dǎo)致的。

以下引自關(guān)于Ubuntu14.04無法啟動(dòng)Tomcat的解決方案 :

【問題分析】
Tomcat以及Hadoop使用Java開發(fā),使用了java.security.SecureRandom的API。此API在某些JRE中默認(rèn)使用/dev/random生成,而/dev/random接收CPU溫度、鍵盤等硬件雜訊來生成熵。因?yàn)樵品?wù)器是采用虛擬化技術(shù)的云服務(wù)器環(huán)境,很難感知CPU溫度等信號(hào)則很難生成熵,因此cat/dev/random幾乎阻塞而導(dǎo)致Tomcat、Hadoop 啟動(dòng)受阻。
【規(guī)避措施】
修改JRE配置
修改原/$JAVA_HOME/jre/lib/security/java.security中的securerandom.source=file:/dev/urandomsecurerandom.source=file:/dev/./urandom
撥弦 回答

nginx里面只配置了靜態(tài)頁面的可以通過3002訪問,但是并沒有配置接口的映射。
假如接口都是通過/api訪問的話,那么nginx里面應(yīng)該增加下列配置

upstream backend {
    server xxx.xxx.xxx.xxx:4000 // 接口的ip和端口地址
}
server {
    ....
    location /api {
       proxy_pass http://backend
    }
}
扯不斷 回答

這個(gè)丟到 vhost 就可以了。

敢試 回答

你這curl調(diào)用接口返回得是json數(shù)據(jù)吧?
你要先把這個(gè)json數(shù)據(jù)轉(zhuǎn)換成數(shù)組或者對(duì)象才能循環(huán)呀

json_decode 對(duì)json格式得字符串進(jìn)行解碼。

瘋子范 回答

100%的是snap文件,就應(yīng)該是100%的。具體看這里:https://docs.snapcraft.io/sna...

雅痞 回答

我的linux可以運(yùn)行,是php7 并不清楚你的怎么回事

夕顏 回答

80端口不行但是8080端口可以,你要檢查端口沖突或者檢查配置文件(nginx.conf和其他的conf文件)。
另外,你的servername在哪里?

枕頭人 回答
server {
        listen          80;
        server_name     old.domain.com;
        location /123.html {
         rewrite ^(.*)$  https://www.new.com$1 permanent;
        }
}

https 的rewrite也一樣

if ( $scheme = "http" ) {
    return 301 https://www.new.com$request_uri;
    ......
"proxy":{
    "/api":{
      "target":"https://h5.ele.me",
      "changeOrigin":true,
      "pathRewrite": {
           "^/api": "/"
        }
    }
  }
淡墨 回答

session過期時(shí)間可以自定義啊,修改一下不就好了
session.cookie_lifetime = 0瀏覽器關(guān)閉失效