• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

yum安装nginx详解

php 搞代码 3年前 (2022-01-23) 27次浏览 已收录 0个评论

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 pr
本文来*源gaodai^.ma#com搞#代!码网
搞gaodaima代码

oxy 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教程有兴趣的朋友有所帮助。


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:yum安装nginx详解

喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址