How To Install nginx on CentOS 6 with yum
来源:互联网 发布:苗阜水平知乎 编辑:程序博客网 时间:2024/05/01 20:52
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 theCentOS Initial 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.
- How To Install nginx on CentOS 6 with yum
- How To Install nginx on CentOS 6 with yum
- 二:2.How To Install nginx on CentOS 6 with yum
- How To Install Wordpress with nginx on Ubuntu 12.04
- How To Install WordPress with nginx on Ubuntu 14.04
- How to Install RSyslog+MySQL with LogAnalyzer on CentOS
- How to install and configure NGINX on CentOS 7
- How to install SVN server with USVN, Apache, mod_dav_svn on CentOS 6
- How To Install Linux, nginx, MySQL, PHP (LEMP) stack on CentOS 6
- how-to-install-nginx-on-centos6.6-x86_64
- How to install Mod_Security on Nginx
- How To Install Apache Tomcat 7 on CentOS 7 via Yum
- How to Install OSSEC on Red Hat or CentOS 6
- How to install Tomcat 8 on a CentOS 6 VPS
- How To Install shadowsocks on CentOS 6 x64
- How To Install shadowsocks on CentOS 6 x64
- How to Install TeamViewer on CentOS
- How To Install Docker on CentOS 7
- Hdu 3336 Count the string(求给定字符串含前缀的数量)
- 修改Android工程的编码,GBK 变UTF-8
- 数据库 设计三大范式
- javascript基础知识(数组)
- [Lintcode] 搜索旋转排序数组 II Search in Rotated Sorted Array II
- How To Install nginx on CentOS 6 with yum
- C++ explicit构造函数
- IP地址判断有效性
- android学习之Unable to resolve target 'android-15'
- MongoDB安全选项导致的“norepl”错误
- Java代码中转码 中文字符转UTF-8编码
- (源码分析)Android-Universal-Image-Loader (图片异步加载缓存库)对Bitmap的优化处理
- Codeforces Round #336 (Div. 1) A. Chain Reaction DP+(可选二分)
- 读《经济解释》卷二,收入与成本