查看linux 开放的所有端口
- netstat -ntpl
重启服务命令
- service network restart
启动nginx
1、查看nginx所在目录
- whereis nginx
2、 进入该路径
- cd /usr/local/nginx/sbin
3、启动nginx
- ./nginx
4、查看nginx 的状态
- ps -ef | grep nginx
- 出现master 则启动成功
5、关闭nginx
- kill -9 nginx的进程号
6、停止 nginx
- ./nginx -s reload
重载nginx配置
- include vhost/*.conf;
宝藏在这呢~
https://www.runoob.com/linux/linux-command-manual.html