nginx 免安装包
生活随笔
收集整理的這篇文章主要介紹了
nginx 免安装包
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在一個環境下編譯安裝好nginx,然后可以拷貝到其他環境使用。同時避免直接安裝造成的環境沖突。
首先下載好nginx和相關插件。然后編譯安裝到沙盒里面。demo如下:
cd到nginx目錄
./configure --prefix=/home/aplus/nginx --sbin-path=/home/aplus/nginx/sbin/nginx --conf-path=/home/aplus/nginx/conf/nginx.conf --error-log-path=/home/aplus/nginx/logs/error.log --pid-path=/home/aplus/nginx/logs/nginx.pid --add-module=/home/aplus/nginx/nginx-upload-module-2.2m make make install然后打包 –prefix對應的目錄,即可
tar -zcvf nginx.tar.gz /data/soft/nginxps: 之前需要安裝pcre相關包
總結
以上是生活随笔為你收集整理的nginx 免安装包的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: tar time stamp in th
- 下一篇: Oracle 中 decode 函数用法