How To Install nginx on CentOS 6 with yum
2016-09-04 17:43
579 查看
How To Install nginx on CentOS 6 with yum
Posted May 22, 2012 191.7kviews Nginx CentOS
About Nginx
nginx is a high performance web server software. It is a much more flexible and lightweight program than apache.
Set Up
The steps in this tutorial require the user to have root privileges. You can see how to set that up in theCentOSInitial Server Setup Tutorial in steps 3 and 4.
Step One—Install EPEL
EPEL stands for Extra Packages for Enterprise Linux. Because yum as a package manager does not include the latest version of nginx in its default repository, installing EPEL will make sure that nginx on CentOS stays up to date.To install EPEL, open terminal and type in:
sudo yum install epel-release
Step Two—Install nginx
To install nginx, open terminal and type in:sudo yum install nginx
After you answer yes to the prompt twice (the first time relates to importing the EPEL gpg-key), nginx will finish installing on your virtual private server.
Step Three—Start nginx
nginx does not start on its own. To get nginx running, type:sudo /etc/init.d/nginx start
You can confirm that nginx has installed on your VPS by directing your browser to your IP address.
You can run the following command to reveal your server’s IP address.
ifconfig eth0 | grep inet | awk '{ print $2 }'
On the page, you will see the words, “Welcome to nginx”
Congratulations! You have now installed nginx.
See More
Once you have nginx installed on your cloud server, you can go on to installthe Lemp Stack or Set
Up a FTP Server
相关文章推荐
- How To Install nginx on CentOS 6 with yum
- how To Install nginx on CentOS 6 with yum
- [转载]How To Install Nginx And PHP-FPM On CentOS 6 Via Yum
- how-to-install-nginx-on-centos6.6-x86_64
- How To Install Linux, nginx, MySQL, PHP (LEMP) stack on CentOS 6
- How to Install and Configure Nginx from Source on centos--转
- How to install and configure NGINX on CentOS 7
- How To Install Nginx on CentOS 7(转)
- How To Install Linux, nginx, MySQL, PHP (LEMP) stack on CentOS 6
- 转载--How to Install VMware Tools on CentOS 6.3
- How to Install and Run a node.js App on Centos 6.4 64bit
- howto install Oracle VirtualBox Guest Additions on Fedora, CentOS and Red Hat (RHEL).
- [转]How to install PHP 5.3 on CentOS
- How to install Python 2.7.3 on CentOS 6.2
- How to Install PHP-FPM on CentOS 6.2
- How to Install Nginx, PHP, PHP Extensions, MySQL, and Zend Optimizer on FreeBSD 7
- How to install HipHop for PHP on CentOS 5.x
- how to install ntopng on centos
- How to Install MySQL Database Using Yum groupinstall on CentOS
- How to Install Apache CouchDB on CentOS 6 (from Source and EPEL)