您的位置:首页 > 运维架构 > Nginx

nginx 支持yum 和 apt-get install的安装方式了,Happy啊。

2012-03-09 00:00 525 查看
http://nginx.org/en/download.html

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-release
package 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.repo
with 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


$(document).ready(function(){dp.SyntaxHighlighter.HighlightAll('code');});

原文链接:
http://blog.csdn.net/kimsoft/article/details/7002565
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: