How To Install nginx on CentOS 6 with yum
来源:互联网 发布:sap2000 知乎 编辑:程序博客网 时间:2024/05/01 14:22
How To Install nginx on CentOS 6 with yum
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.
See More
Once you have nginx installed on your cloud server, you can go on to install the Lemp Stack or Set Up a FTP Server
How To Install nginx on CentOS 6 with yum
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.
See More
Once you have nginx installed on your cloud server, you can go on to install the 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
- 二: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
- 如何处理大数据文件+录入数据
- Python中的Numpy,Scipy和matplotlib的安装
- 欢迎使用CSDN-markdown编辑器
- 阿里感悟(十)如何写好简历
- project euler 108
- How To Install nginx on CentOS 6 with yum
- strcmp返回值布尔类型的判断(分析常见错误)
- 安卓智慧上海学习笔记系列——多重ViewPager嵌套事件分发处理
- Spring AOP工厂方式的实现(半自动化)
- java学习之路 之 网络编程-练习题
- 懒加载异常及处理
- JSP脚本元素
- Gpower CMS/模板置标
- C语言break和continue的区别