- 查看Nginx进程
ps -ef|grep nginx
- 查看Nginx安装目录
whereis nginx
- 启动Nginx
./usr/local/nginx/sbin/nginx
- 访问nginx(ip地址为:192.168.100.100,端口号为:80)
http://192.168.100.100/
- 重启Nginx
./nginx -s reload
- 停止Nginx
./nginx -s stop
ps -ef|grep nginx
whereis nginx
./usr/local/nginx/sbin/nginx
http://192.168.100.100/
./nginx -s reload
./nginx -s stop