Nginx 安装

解压文件,进入解压后的文件

tar -zxvf  nginx-1.9.9.tar.gz
cd /usr/local/nginx-1.9.9

配置参数模块

./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module
// 等其他所需模块

最后,编译及安装

make
make install

启动,测试与停止

cd /usr/local/nginx/sbin
// 检查配置
./nginx -t
// 启动
./nginx
// 测试 或 浏览器访问
curl http://localhost
// 停止
./nginx -s stop
// 重启
./nginx -s reload
posted @ 2018-11-20 17:03  游园拾忆  阅读(14)  评论(0编辑  收藏  举报