奇米影视四色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 掛載云數據盤
欄目列表
推薦內容
熱點內容
展開
主站蜘蛛池模板: youjizz.com在线播放| 国产精品第7页| 亚洲国产一区二区三区| 欧美日韩高清| 国产1区2区在线观看| 影音先锋每日资源| 国产精品漂亮美女在线观看| 国产高清一区二区三区视频| 99久久国产综合精品网成人影院| 国产美女小视频| 日本人真淫视频一区二区三区| 日本伊人网| 国产人成午夜免费看| 国产精品jizz在线观看直播| 亚洲欧美日韩综合在线| 日韩 国产 欧美视频一区二区三区 | 99视频99| 日韩精品视频在线| 天天操天天干天天玩| 日韩欧美亚洲国产高清在线| 玖玖在线| 青青国产成人久久91网| 青青艹在线视频| 青青青久久| 欧美一区二区三区播放| 日日操天天爽| 激情综合五月天丁香婷婷| 欧美日韩国产在线观看| 日韩在线观看精品| 久久99网站| 欧区一欧区二欧区三免费| dasd-698黑人在线播放| 日本高清在线观看视频| 欧美在线一区二区三区欧美| 国产精品久久久久…| 国产1区2区3区在线观看| 高清欧美一区二区三区| 久久综合视频网站| 最近最新中文字幕高清中文字幕网 | 亚洲三级在线| 99久久国内精品成人免费|