How To Install nginx on CentOS 6 with yum
2016-04-06 12:43
681 查看
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.
相关文章推荐
- centos7 安装 nginx g++、gcc、openssl-devel、pcre-devel和zlib-devel
- nginx、Apache、IIS服务器解决 413 Request Entity Too Large问题方法汇总
- Nginx安装
- nginx学习
- nginx 405 not allowed问题的解决
- rtmp与hls流媒体服务器搭建:ubuntu下Nginx搭建初探与rtmp-module的添加
- nginx 安装
- LVS、Nginx、Haproxy三大负载均衡软件对比
- Nginx编译安装模块(非重装)
- Nginx合并静态资源(concat模块)
- Nginx日常维护的命令
- mac 安装 nginx 环境
- Nginx 的编译安装和URL地址重写
- LINUX测试环境部署nginx(五)
- Nginx将请求分发到各web应用
- Nginx负载均衡
- nginx
- Nginx On rhel6.4
- 使用Nginx+FFMPEG搭建HLS直播转码服务器
- nginx配置多站点