您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

yum安装nginx详解

2025/11/14 9:26:38发布12次查看
1.查看yum的nginx信息
# yum info nginx
loaded plugins: fastestmirrorloading mirror speeds from cached hostfile * epel: mirrors.yun-idc.comexcluding packages in global exclude listfinishedinstalled packagesname : nginxarch : x86_64version : 0.8.55release : 6.el5size : 984 krepo : installedsummary : robust, small and high performance http and reverse proxy serverurl : http://nginx.net/license : bsddescription: 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 administratorthis 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教程有兴趣的朋友有所帮助。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product