号称C站最全Linux命令的文章~

查看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.linuxcool.com/
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_54177999/article/details/120268055