博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
yum安装nginx详解
阅读量:6689 次
发布时间:2019-06-25

本文共 1324 字,大约阅读时间需要 4 分钟。

原文:http://blog.csdn.net/tjcyjd/article/details/50686505

 

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 ]

 

你可能感兴趣的文章
英文单词记忆( 积累中 )
查看>>
Android 无闪烁启动画面程序源码
查看>>
基于uml的面向对象的概要设计
查看>>
用 PHP 读取文件的正确方法
查看>>
Authentication and Integration 第三篇:Oracle LDAP介绍
查看>>
我的友情链接
查看>>
路由器 交换机 摩登Modem的区别!
查看>>
Nagios+ PNP4nagios + rrdtool 监控平台建立
查看>>
linux 磁盘的分区
查看>>
windows手动启动mysql mysql.bat
查看>>
TCC型分布式事务原理和实现之:原理介绍
查看>>
配置outlook收发domino邮件
查看>>
用普通计算机假设基于liunx系统的NAS部署FineReport决策系统
查看>>
[精讲-5]BitLocker
查看>>
TensorFlow Serving在Kubernetes中的实践
查看>>
Python函数与类参数默认值陷阱
查看>>
SQLite数据类型
查看>>
CentOS7的SSH免秘钥认证
查看>>
jdbc连接数据库一般思路(MySql为例)
查看>>
SwaggerUI ASP.Net WebAPI2
查看>>