Nginx Linux安装
1.下载并上传到服务器
2.解压
cd /home/hana |
3.配置安装
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module |
4.修改配置文件
vi /usr/local/nginx/conf/nginx.conf |
5.相关命令
- 验证配置文件
/usr/local/nginx/sbin/nginx -t |
- 启动
nohup /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf & |
- 刷新配置文件
/usr/local/nginx/sbin/nginx -s reload |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 江上酒-Hexo!
评论




