鍍金池/ 問(wèn)答/ Linux問(wèn)答
雨萌萌 回答

root@vps [~]# killall -9 mysql mysqld
root@vps [~]# /etc/init.d/mysql start

掛念你 回答

信息太少了,把配置都都貼出來(lái)吧

陌顏 回答

應(yīng)該是少了一個(gè)參數(shù)設(shè)置,試一試 ionic start blank mm

心沉 回答

比如A表為:questions, B表為answers

那么SQL就是

select a.id, a.title, count(b.pid) as answer_count  from questions a, answers b where a.id=b.pid group by b.pid order by answer_count DESC;
吢丕 回答

npm cache --force 試試
npm prune . 試試
npm rebuild . 試試
實(shí)在不行,把整個(gè)node_module全刪了,再npm i 試試
好吧,沒(méi)法了

只愛你 回答

ctrl z是后臺(tái)運(yùn)行(沒(méi)有關(guān)閉),是不是因?yàn)槟阒耙粋€(gè)連接沒(méi)關(guān)閉的原因
fg調(diào)到前臺(tái)然后ctrl d或者ctrl c關(guān)上

網(wǎng)妓 回答

推薦使用阿里云的郵件推送API

旖襯 回答

你可以用寶塔Linux 這個(gè)管理軟件還是很好用的,可以安裝各種插件,你只需要選擇好版本然后點(diǎn)安裝就可以了

萌吟 回答

ThreadLocal是當(dāng)前線程可見,不存在線程間通信的問(wèn)題。

而volatile可以在線程間共享變量的同時(shí)保證可見性,以便線程間可以成功合作。

兩個(gè)應(yīng)用場(chǎng)景差別還挺大的。。。

北城荒 回答

webpack配置應(yīng)該沒(méi)有什么問(wèn)題,看了一下報(bào)錯(cuò)信息

Cannot find module 'webpack'

之后留意一個(gè)細(xì)節(jié),你貼出來(lái)的報(bào)錯(cuò)信息最后幾行顯示了文件路徑是使用全局安裝的模塊。
所以最后定位出問(wèn)題是使用了全局安裝的webpack出現(xiàn)了問(wèn)題。

解決方法

使用

npm install webpack --save-dev

代替

npm install webpack -g
喵小咪 回答

問(wèn)題已經(jīng)解決,參考了:Nginx DNS resolver配置實(shí)例

需要注意的是 proxy_pass 并不是每次請(qǐng)求都會(huì)進(jìn)行解析,如果 upstream IP 頻繁變動(dòng),需要強(qiáng)制解析。

# via http://forum.nginx.org/read.php?2,215830,215832#msg-215832
resolver 127.0.0.1;
set $backend "foo.example.com";
proxy_pass http://$backend;
孤島 回答

報(bào)的錯(cuò)誤是missing script: dev,看著像是package.jsonscripts屬性里面沒(méi)有配置dev,你確認(rèn)下當(dāng)前目錄下的package.json文件里面的scripts屬性里面有沒(méi)有dev這個(gè)腳本。你殺死進(jìn)程之后沒(méi)有切換目錄吧。

墻頭草 回答

I assume you are using MBR, it can only have 4 primary partitions or 3 primary partitions and 1 extended partition.

Seems like Ubuntu can not recognize the extended partition.

You can create the partitions under windows such as /dev/sda7. And mount it on /.

Or install the Ubuntu on the whole partition like /dev/sda3(extend the size under windows before install).
This need mount the whole partition on /.

北城荒 回答

http2配置SSL只能使用TLSv1.2+ 版本,你只保留三條,意味著加密套件用的是默認(rèn)的設(shè)置,猜測(cè)是這個(gè)原因,歡迎更智慧的回答。參考:http://http2.github.io/http2-...
歡迎關(guān)注同名微信/微博/知乎

脾氣硬 回答

注意:以下僅適用于 Bash,其他 shell 如 zsh 可能不兼容。

印刷錯(cuò)誤吧。

out=$(cat a.txt)out="$(cat a.txt)" 效果一樣。
關(guān)鍵是 echo 那一行,保留換行符應(yīng)使用雙引號(hào)包圍變量 echo "$out"

短嘆 回答

sc create php binpath= "c:/php.exe" displayname= "php-fpm" start= auto

落殤 回答
listen 10.0.0.1:8080;
listen 127.0.0.1:8080;
listen 80;
listen *:81;
listen localhost:8000;
listen [::]:8001;
listen [::1];
listen unix:/var/run/nginx.sock;

以上這些都是支持的

厭遇 回答

沒(méi)有測(cè)過(guò),你試試看

server {
        listen       80;
        listen [::]:80 ipv6only=on;
        server_name  www.example.com;

        root   /data/www/www.example.com;
        index index.php  index.html index.htm;

        location / {
                # 這里使用try_files進(jìn)行url重寫,不用rewrite了。
                try_files $uri $uri/ /index.php?$query_string;
        }

        location ~ \.php($|/) {
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_split_path_info ^(.+\.php)(.*)$;
            fastcgi_param   PATH_INFO $fastcgi_path_info;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            include        fastcgi_params;
        }

        location ~ /\.ht {
                deny  all;
        }
}
深記你 回答

1、檢查tomcat目錄下面的webapp文件夾下面是否有其他文件,一般情況下如果沒(méi)有其他文件,即使啟動(dòng)正常,也不能訪問(wèn)。
2、檢查端口號(hào)是不是被tomcat占用,如果是說(shuō)明啟動(dòng)也沒(méi)有問(wèn)題
3、把你的tomcat拷貝其它電腦測(cè)試一下看看是否正常啟動(dòng)和訪問(wèn),如果都沒(méi)有問(wèn)題,就是你的服務(wù)器配置問(wèn)題了。
4、采用新下載的tomcat進(jìn)行測(cè)試
一般經(jīng)過(guò)這幾步,基本就可以把問(wèn)題定位的差不多了。