RHEL / Centos 6: Install Nginx Using Yum Command
2013-12-05 09:59
435 查看
RHEL v6.x user type the following command:
Type the following yum command to install nginx web-server:
Type the following command:
Type the following commands:
Default configuration directory: /etc/nginx/
Default SSL and vhost config directory: /etc/nginx/conf.d/
Default log file directory: /var/log/nginx/
Default document root directory: /usr/share/nginx/html
Default configuration file: /etc/nginx/nginx.conf
Default server access log file: /var/log/nginx/access.log
Default server access log file: /var/log/nginx/error.logTo edit the nginx configuration file, enter:
# wget http://nginx.org/packages/rhel/6/noarch/RPMS/nginx-release-rhel-6-0.el6.ngx.noarch.rpm # rpm -ivh nginx-release-rhel-6-0.el6.ngx.noarch.rpmSample outputs:
warning: nginx-release-rhel-6-0.el6.ngx.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID 7bd9bf62: NOKEY Preparing... ########################################### [100%] 1:nginx-release-rhel ########################################### [100%]
Step #2: Install nginx web-server
Type the following yum command to install nginx web-server:# yum install nginx
Step #3: Turn on nginx service
Type the following command:# chkconfig nginx on
How do I start / stop / restart nginx web-server?
Type the following commands:# service nginx start# service nginx stop# service nginx restart# service nginx status# service nginx reload
Step #4: Configuration files
Default configuration directory: /etc/nginx/Default SSL and vhost config directory: /etc/nginx/conf.d/
Default log file directory: /var/log/nginx/
Default document root directory: /usr/share/nginx/html
Default configuration file: /etc/nginx/nginx.conf
Default server access log file: /var/log/nginx/access.log
Default server access log file: /var/log/nginx/error.logTo edit the nginx configuration file, enter:
# vi /etc/nginx/nginx.conf
相关文章推荐
- RHEL / Centos 6: Install Nginx Using Yum Command
- RHEL / Centos 6: Install Nginx Using Yum Command
- IT忍者神龟之RHEL / Centos 6: Install Nginx Using Yum Command 翻译
- How To CentOS / RHEL 7 Install Gnome Desktop Using Yum
- centos6.5 yum install nginx
- Install Nginx/PHP-FPM on Fedora 20/19, CentOS/RHEL 6.5/5.10
- WordPress 3.9 Released – Install Using LAMP or LEMP on RHEL, CentOS & Fedora
- nginx的centos和rhel的yum配置安装
- yum install nginx(刚安装完centos-minimal版)安装失败
- centos6.5 64位 yum install nginx的默认安装路径
- yum command: Update / Install Packages Under Redhat Enterprise / CentOS Linux Version 5.x
- linux/centos安装nginx常见错误及解决办法【make错误,需要yum -y install openssl openssl-devel或者自己下载然后重新./configure】
- Install Packages Via yum Command Using DVD / CD as Repo
- Install WordPress 3.6.1 Using LAMP or LEMP on RHEL, CentOS & Fedora
- centos6.3 yum install nginx
- g++: command not found的解决 G++没有装或却没有更新 以下方法都可以试试: centos: yum -y update gcc yum -y install gcc+
- RHEL5 利用 CentOS的yum 安装openssl gc++及Nginx
- Install Nginx/PHP-FPM on CentOS/RHEL
- centos yum install nginx No package nginx available
- 解决centos下yum install epel-release报错:CentOS No package nginx available.