奇米影视四色7777久久精品-奇米影视777在线观看一区-七草千岁在线-破产姐妹第二季在线观看天天美剧-国产精品视频铁牛tv-国产精品视频视频久久

0712-2888027 189-8648-0214
微信公眾號

孝感風信網絡科技有限公司微信公眾號

當前位置:主頁 > 技術支持 > Linux > 騰訊云centos 6.5掛載云數據盤實例

騰訊云centos 6.5掛載云數據盤實例

時間:2016-03-14來源:風信官網 點擊: 892次

Nginx是通過apt-get的方式安裝的,所以我的路徑與下載代碼再編譯、安裝的有些不一樣,我的升級過程如下

1.進入Downloads文件夾

cd /Downloads

2.下載nginx-1.2.5.tar.gz文件到Downloads文件夾中

wget http://nginx.org/download/nginx-1.2.5.tar.gz

3.解壓nginx-1.2.5.tar.gz文件

tar zxvf nginx-1.2.5.tar.gz

4.進入ngixn-1.2.5文件夾中

cd nginx-1.2.5

5.查看nginx原來的配置

nginx -V

上面的命令將輸出:

--prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --with-debug --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-http_xslt_module --with-ipv6 --with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl --with-mail --with-mail_ssl_module

6.執行configure命令,后面跟上原來nginx的配置

./configure --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --with-debug --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-http_xslt_module --with-ipv6 --with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl --with-mail --with-mail_ssl_module

在執行configure時得到幾個錯誤:

a.配置 --with-http_xslt_module 時提示 the HTTP XSLT module requires the libxml2/libxslt libraries

sudo apt-get install libxml2 libxml2-dev libxslt-dev

b.配置 --with-http_image_filter_module 時提示 the HTTP image filter module requires the GD library.

sudo apt-get install libgd2-xpm libgd2-xpm-dev

c.配置 --with-http_geoip_module 時提示 the GeoIP module requires the GeoIP library.

sudo apt-get install geoip-database libgeoip-dev

d.rewrite需要pcre支持, 錯誤提示:./configure: error: the HTTP rewrite module requires the PCRE library.

apt-get install libpcre3 libpcre3-dev

 

7.再執行第6步的configure命令

8.這次沒有提示缺少library, 執行make令命編譯nginx, 編譯好以后objs目錄下多出一個nginx文件,這個就是已編輯好的nginx程序

make

9.更改舊的nginx程序的名子,并復制新的程序過去,我的舊nginx程序放在/usr/sbin/目錄中

mv /usr/sbin/nginx /usr/sbin/nginx-20121122
cp objs/nginx /usr/sbin/nginx
/usr/sbin/nginx -t

執行/usr/sbin/nginx -t 命令檢查配置文件并將返回下面的信息:

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

10.在nginx-1.2.5目錄下執行下面的命令來升級nginx

make upgrade

11.執行make upgrade得到一個錯誤:

make: /etc/nginx/sbin/nginx: Command not found
make: *** [upgrade] Error 127

12.用文本編輯器打開修改nginx-1.2.5目錄下名為Makefile的文件,將upgrade節點中的/etc/nginx/sbin/nginx改為/usr/sbin/nginx -t,保存后關閉并重新執行make upgrade命令

13.執行nginx -v命令,程序的版本號已經是1.2.5,升級完畢.

熱門關鍵詞: 騰訊云 centos 掛載云數據盤
欄目列表
推薦內容
熱點內容
展開
主站蜘蛛池模板: 欧美成人精品一区二区| 亚洲综合日本| 欧美专区日韩专区| 天天操天天搞| 97国产大学生情侣11在线视频| heyzo国产亚洲高清| 永久黄网站色视频免费观看| 国产免费黄| 美女一区二区在线观看| 国产一区二三区| 日韩欧美不卡视频| 亚洲视频在线播放| 99久久国产免费福利| 日本aaa视频| 亚洲欧美日韩中文不卡| 老师的兔子好软水好多视频 | 51精品视频在线观看视频| 亚洲精品tv| 成人毛片基地| 日本最新在线| 中文字幕在线视频免费| 成人综合久久综合| 久久精品视频99| 日本久久中文字幕| 冲田杏梨午夜久久99视| 成年美女黄网站色大免费视频| 久久综合一区二区三区| 青青草网址| 欧美黄色片免费观看| 欧美a在线观看| 午夜看片| 精品小视频在线| 天天操欧美| 撸先生app| 天天干在线免费视频| 四虎激情影院| 青青操在线视频观看| 亚洲欧美天堂网| 国产一区二区免费不卡在线播放| 91精品免费高清在线| 欧美日韩99|