nginx 支持yum 和 apt-get install的安装方式了,Happy啊。
2011-11-23 00:07
585 查看
http://nginx.org/en/download.html
Trac source browser
To set up the yum repository for the RHEL/CentOS, pick up and install the corresponding
key necessary to check signed RPMs:
RHEL 5
RHEL 6
CentOS 5
CentOS 6
Then run the following command:
As an alternative, a repository config can be added manually. Create the file named
Replace “
for 5.x or 6.x versions, respectively.
For Debian 6 append the following contents to
Then run the following commands:
For Ubuntu 10.04 append the following contents to
Then run the following commands:
Source Repository
Read-only Subversion repository:svn://svn.nginx.org/nginx
Trac source browser
Pre-Built Packages
For automatic updates of the pre-built Linux packages it is possible to configure the yum repository for RHEL/CentOS, or the apt repository for Debian/Ubuntu.To set up the yum repository for the RHEL/CentOS, pick up and install the corresponding
nginx-releasepackage from the list below, containing the yum config and the public
key necessary to check signed RPMs:
RHEL 5
RHEL 6
CentOS 5
CentOS 6
Then run the following command:
yum install nginx
As an alternative, a repository config can be added manually. Create the file named
/etc/yum.repos.d/nginx.repowith the following contents:
[nginx] name=nginx repo baseurl=http://nginx.org/packages/OS/OSRELEASE/$basearch/ gpgcheck=0 enabled=1
Replace “
OS” with “
rhel” or “
centos”, depending on the distribution used, and “
OSRELEASE” with “
5” or “
6”,
for 5.x or 6.x versions, respectively.
For Debian 6 append the following contents to
/etc/apt/sources.list:
deb http://nginx.org/packages/debian/ squeeze nginx deb-src http://nginx.org/packages/debian/ squeeze nginx
Then run the following commands:
apt-get update apt-get install nginx
For Ubuntu 10.04 append the following contents to
/etc/apt/sources.list:
deb http://nginx.org/packages/ubuntu/ lucid nginx deb-src http://nginx.org/packages/ubuntu/ lucid nginx
Then run the following commands:
apt-get update apt-get install nginx
相关文章推荐
- nginx 支持yum 和 apt-get install的安装方式了,Happy啊。
- linux中wget 、apt-get、yum 这三种安装方式的区别是什么?
- Ubuntu下最方便的Nginx安装方式:apt-get安装Nginx服务器
- 请问linux中wget 、apt-get、yum 这三种安装方式的区别是什么?分别用于什么环境
- ubuntu下使用apt-get方式安装nginx
- CentOS的软件安装工具不是apt-get 是yum # yum -y install gcc
- apt-get install安装软件时出现依赖错误解决方式
- 安装GCC(sudo yum -y install gcc 如果yum没有 sudo apt-get install yum)
- ubuntu使用apt get install 安装nginx和php-fpm
- apt-get 方式安装nginx后,增加模块--with-http_perl_module
- 010 Linux 下通过yum、apt、dnf方式安装和配置Nginx服务器
- ubuntu 使用apt-get install 安装php5.6--php7
- apt-get install安装软件时出现依赖错误解决方案
- ubuntu图下安装软件出现You might want to run 'apt-get -f install' to correct these解决
- 使用apt-get install安装node.js导致安装成低版本的解决方案
- apt-get install nethogs安装出现E: Unmet dependencies. Try 'apt-get -f install' with no packages (or spe
- apt-get install wine1.4 安装出错,解决方法
- CentOS 7 Linux 安装Nginx - yum方式(咋个办呢 zgbn)
- 解决iOS8通过SSH使用apt-get install安装时出现的问题
- centos6.6直接yum安装nginx,并且支持php访问的配置