redhat6、redhat7、centos6、7安装nginx
生活随笔
收集整理的這篇文章主要介紹了
redhat6、redhat7、centos6、7安装nginx
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Nginx 的官方下載地址為:http://nginx.org/en/download.html。
穩定版本Stable version
1、準備工作、安裝工具
yum -y install gcc gcc-c++ automake pcre pcre-devel zlib zlib-devel open openssl-devel2、解壓
tar -xvf nginx-1.6.3.tar.gz? cd nginx-1.6.33、將當前工作路徑定位到/app/nginx/nginx-1.6.3-compile/nginx-1.6.3
./configure --prefix=/app/nginx/nginx-1.6.3
4、得到了 Nginx 的 Makefile 文件后,在當前解壓目錄目錄下使用 make 文件進行編譯:
5、命令運行完成后,將當前目錄定位到/nginx下,可以對 Nginx服務器安裝后的全部資源進行查看:
# cd /app/nginx/nginx-1.6.3 # ls -l
6、Nginx 服務的啟動
7、Nginx 服務的停止
# ps aux|grep nginx # kill -QUIT 9646?
總結
以上是生活随笔為你收集整理的redhat6、redhat7、centos6、7安装nginx的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: flume taildir 启动异常Li
- 下一篇: SNMP介绍