登录  /  注册
yum安装nginx详解
php中文网
发布: 2016-07-29 09:03:15
原创
1089人浏览过

1.查看yum的nginx信息

# yum info nginx
登录后复制
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * epel: mirrors.yun-idc.com
Excluding Packages in global exclude list
Finished
Installed Packages
Name       : nginx
Arch       : x86_64
Version    : 0.8.55
Release    : 6.el5
Size       : 984 k
Repo       : installed
Summary    : Robust, small and high performance HTTP and reverse proxy server
URL        : http://nginx.net/
License    : BSD
Description: Nginx [engine x] is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3
           : proxy server written by Igor Sysoev.
登录后复制

2.如果需要更换版本,先卸载

# yum remove nginx
登录后复制

3.安装并启动nginx

# yum install nginx
# service nginx start
登录后复制

4.浏览器访问

http://192.168.0.168/

返回结果如下表示成功

Welcome to nginx on EPEL!
This page is used to test the proper operation of the nginx HTTP server after it has been installed. If you can read this page, it means that the web server installed at this site is working properly.

Website Administrator
This is the default index.html page that is distributed with nginx on EPEL. It is located in /usr/share/nginx/html.

You should now put your content in a location of your choice and edit the root configuration directive in the nginx configuration file /etc/nginx/nginx.conf.

[ Powered by nginx ]  [ Powered by Fedora EPEL ]
登录后复制

以上就介绍了yum安装nginx详解,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

相关标签:
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 技术文章
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2023 //m.sbmmt.com/ All Rights Reserved | 苏州跃动光标网络科技有限公司 | 苏ICP备2020058653号-1

 | 本站CDN由 数掘科技 提供

登录PHP中文网,和优秀的人一起学习!
全站2000+教程免费学