nginx的安装 ,启动命令

通过apt-get install nginx来安装。

按照linux尿性,一般安装完后配置文件在/etc文件夹下,启动文件在/usr/bin  或者/usr/sbin 下

 

安装完后一般就启动了,通过浏览器 http://localhost  可查看

 

常见命令

停止nginx

sudo systemctl stop nginx

启动nginx

sudo systemctl start nginx

重启nginx

sudo systemctl restart nginx

重新加载 

sudo systemctl reload nginx

 

posted @ 2018-12-18 11:41  妖君你好  阅读(210)  评论(0编辑  收藏  举报