Linux 下安装 nginx 并且平滑升级nginx
来源:互联网 发布:搪瓷 知乎 编辑:程序博客网 时间:2024/05/22 18:56
Centos6.5
自动安装选择最快的源[root@localhost ~]# yum install yum-fastestmirror这里 我已经安装过,运行结果如下
Loaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfile * base: ftp.riken.jp * epel: mirrors.zju.edu.cn * extras: ftp.riken.jp * updates: ftp.riken.jpSetting up Install ProcessPackage yum-plugin-fastestmirror-1.1.30-30.el6.noarch already installed and latest version
安装nginx
yum install nginx
[root@localhost ~]# yum install nginxLoaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfile * base: ftp.riken.jp * epel: mirrors.opencas.cn * extras: ftp.riken.jp * updates: ftp.riken.jpSetting up Install ProcessPackage nginx-1.8.0-1.el6.ngx.x86_64 already installed and latest version
yum update nginx
执行命令前,首先配置nginx 源
[root@localhost ~]# vim /etc/yum.repos.d/nginx.repo
#nginx.repo[nginx]name=nginx repobaseurl=http://nginx.org/packages/centos/6/$basearch/gpgcheck=0enabled=1
</pre><pre code_snippet_id="659047" snippet_file_name="blog_20150505_7_9989798" name="code" class="html">yum update nginx
执行结果与检查如下
[root@localhost ~]# yum update nginxLoaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfile * base: ftp.riken.jp * epel: ftp.cuhk.edu.hk * extras: ftp.riken.jp * updates: ftp.riken.jpnginx | 2.9 kB 00:00 nginx/primary_db | 37 kB 00:00 Setting up Update ProcessResolving Dependencies--> Running transaction check---> Package nginx.x86_64 0:1.0.15-11.el6 will be updated---> Package nginx.x86_64 0:1.8.0-1.el6.ngx will be an update--> Finished Dependency ResolutionDependencies Resolved======================================================================================================================================================================================== Package Arch Version Repository Size========================================================================================================================================================================================Updating: nginx x86_64 1.8.0-1.el6.ngx nginx 352 kTransaction Summary========================================================================================================================================================================================Upgrade 1 Package(s)Total download size: 352 kIs this ok [y/N]: yDownloading Packages:nginx-1.8.0-1.el6.ngx.x86_64.rpm | 352 kB 00:03 Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction Updating : nginx-1.8.0-1.el6.ngx.x86_64 1/2 Cleanup : nginx-1.0.15-11.el6.x86_64 2/2 Verifying : nginx-1.8.0-1.el6.ngx.x86_64 1/2 Verifying : nginx-1.0.15-11.el6.x86_64 2/2 Updated: nginx.x86_64 0:1.8.0-1.el6.ngx Complete![root@localhost ~]# service nginx stop停止 nginx: [确定][root@localhost ~]# service nginx start正在启动 nginx: [确定][root@localhost ~]# nginx -vnginx version: nginx/1.8.0
当前nginx版本为 1.8.0 (nginx -v)
nginx 访问结果如下图
0 0
- Linux 下安装 nginx 并且平滑升级nginx
- Linux下平滑升级nginx
- nginx 平滑升级
- nginx平滑升级
- nginx的平滑升级
- nginx平滑升级
- nginx平滑升级
- nginx平滑升级
- Nginx的平滑升级
- nginx的平滑升级
- nginx 平滑升级
- Nginx平滑升级
- Nginx平滑升级
- nginx平滑升级问题
- Nginx平滑升级
- Nginx 平滑升级
- Nginx平滑升级
- Linux下升级nginx,编译安装nginx-sticky-module
- poj 1273 Drainage Ditches
- C#获取当前日期时间
- 深刻理解套接字
- 【LeetCode】Permutations II
- TCP/IP详解学习笔记(6)-TCP协议概述
- Linux 下安装 nginx 并且平滑升级nginx
- 【问题处理】Icon.png pngcrush caught libpng error:Read Error
- qt正则表达式应用于文本文件分割[同时识别逗号分割符和空格等]
- Ruby中的字符串操作
- Boost库之function的使用
- 采用文件拷贝的方式配置android开发环境
- hdu 1542 Atlantis 线段树 + 扫描线
- 整数压缩算法
- Yii关联表字段查询