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

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 ]

最新文章

  1. jNotify:操作结果信息提示条
  2. filter 简介
  3. UIImageView、UISlider、UISwitch、UIStepper、UISegmentControl
  4. 关于SQL2008 “不允许保存更改。您所做的更改要求删除并重新创建以下表。您对无法重新创建的标进行了更改或者启用了‘阻止保存要求重新创建表的更改’” 解决方案
  5. hdu 4499 Cannon dfs
  6. Eclipse中调试技巧
  7. 'mysql' 不是内部或外部命令,也不是可运行的程序或批处理文件的解决办法
  8. [转] linux下的c/c++调试器gdb
  9. 云存储,OWNCLOUD,真的遇到过这个需求哟。。。
  10. Linux & Python 导航目录
  11. UESTC_Eight Puzzle 2015 UESTC Training for Search Algorithm & String<Problem F>
  12. mysql save or update
  13. Nginx uWSGI web.py 站点搭建
  14. 逻辑回归的实现(LogicalRegression)
  15. 新手入门Flume搭建部署
  16. mac上搭建appium+IOS自动化测试环境(一)
  17. Chapter 1 Securing Your Server and Network(12):保护链接服务器
  18. URL List by Category
  19. [转]C# RichTextBox不用滚动条
  20. Hive Tunning 补充 关于bucket

热门文章

  1. 【java】抽象类继承关系
  2. django第三天(路由基础和路由分配)
  3. (转)automaticallyAdjustsScrollViewInsets(个人认为iOS7中略坑爹的属性)
  4. Codeforces Round #877 (Div. 2) B. - Nikita and string
  5. PAT Basic 1025
  6. python基础——14(shelve/shutil/random/logging模块/标准流)
  7. Java-确定被加载类的路径
  8. log4net.dll配置以及在项目中应用
  9. enq: TX - row lock contention“等待事件的处理
  10. 【LeetCode】Combination Sum(组合总和)