endlesslove's recent timeline updates
endlesslove

endlesslove

V2EX member #96045, joined on 2015-02-06 12:27:03 +08:00
nginx 无法停止
NGINX  •  endlesslove  •  Apr 26, 2020  •  Lastly replied by winzkh
30
求助 Install Nginx on Ubuntu 18.04
新手求助  •  endlesslove  •  Feb 24, 2020  •  Lastly replied by endlesslove
33
vps 重装问题#ubuntu16
VPS  •  endlesslove  •  Jan 7, 2019  •  Lastly replied by dirwdirw
1
如何修改 vps 上 pptp 的端口及 win 下的端口
VPS  •  endlesslove  •  Sep 21, 2016  •  Lastly replied by zhong00123
1
endlesslove's recent replies
Apr 25, 2020
Replied to a topic by endlesslove NGINX nginx 无法停止
ps -ef | grep nginx
显示依然在运行,不解,新手需要帮助
Apr 25, 2020
Replied to a topic by endlesslove NGINX nginx 无法停止
@PbCopy111 nginx -s quit nginx: [error] invalid PID number "" in "/var/run/nginx.pid" 返回的就是这样!
Apr 25, 2020
Replied to a topic by endlesslove NGINX nginx 无法停止
cat /lib/systemd/system/nginx.service
[Unit]
Description=nginx - high performance web server
Documentation=http://nginx.org/en/docs/
After=network-online.target remote-fs.target nss-lookup.target
Wants=network-online.target

[Service]
Type=forking
PIDFile=/var/run/nginx.pid
ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID

[Install]
WantedBy=multi-user.target
root@localhost:~# cat /etc/systemd/system/multi-user.target.wants/nginx.service
[Unit]
Description=nginx - high performance web server
Documentation=http://nginx.org/en/docs/
After=network-online.target remote-fs.target nss-lookup.target
Wants=network-online.target

请教大家,着否这里需要设置过才能关机?
Apr 25, 2020
Replied to a topic by endlesslove NGINX nginx 无法停止
ps -ax | grep nginx

查看了有一个 master process 和 nginx: worker process

是否是这两个东西重叠了,请教大家帮助!
Apr 25, 2020
Replied to a topic by endlesslove NGINX nginx 无法停止
@gesse 我没有编译安装过,只有 apt-get install 一个
Apr 25, 2020
Replied to a topic by endlesslove NGINX nginx 无法停止
@unoxunoy vi /var/run/nginx.pid 这个文件改如何写,我查询到 15480
Feb 24, 2020
Replied to a topic by endlesslove 新手求助 求助 Install Nginx on Ubuntu 18.04
@chenluo0429 sudo ln -s /etc/nginx/sites-available/examplecom /etc/nginx/sites-enabled/ 这个命令我只用过一次
按照步骤,最后显示的还是那个默认的 nginx
我按照 Tink 测试过那条命令,居然可以,但会有几段报错,但这不重要,最后自己写的静态网页显示了。

不解为啥么会这样。

我查找了好多网页,都是粘帖复制,晕倒!
Feb 24, 2020
Replied to a topic by endlesslove 新手求助 求助 Install Nginx on Ubuntu 18.04
楼上那位 Tink 指点的,
我貌似在英文网站上看到过,只是他们给出的命令没什么用处
Feb 24, 2020
Replied to a topic by endlesslove 新手求助 求助 Install Nginx on Ubuntu 18.04
@hoyixi 劳烦你们推荐点书籍或者网站,适合新手的,谢谢!
Feb 24, 2020
Replied to a topic by endlesslove 新手求助 求助 Install Nginx on Ubuntu 18.04
@Buges 我刚刚才学,所以你要我学这个,有点来不及。我还是慢慢学 nginx 好了
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   945 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 26ms · UTC 21:38 · PVG 05:38 · LAX 14:38 · JFK 17:38
♥ Do have faith in what you're doing.