RHEL6怎么进行安装NGINX
如何在RHEL6上安装NGINX
下载安装包
wget http://nginx.org/download/nginx-1.12.2.tar.gz
解压安装包
tar -zxvf nginx-1.12.2.tar.gz
进入解压目录
cd nginx-1.12.2
配置编译
./configure --prefix=/usr/local/nginx
编译安装
make && make install
启动nginx
/usr/local/nginx/sbin/nginx
测试是否启动成功
curl 127.0.0.1
如果出现以下界面则说明安装成功
Welcome to nginx!
If you see this page, the nginx web server is successfully installed and working. Further configuration is required.
For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.
Thank you for using nginx.
相关文章