zoukankan      html  css  js  c++  java
  • nginx

    1.查看yum的nginx信息

    1. # yum info nginx  
    [plain] view plain copy 在CODE上查看代码片派生到我的代码片
    1. Loaded plugins: fastestmirror  
    2. Loading mirror speeds from cached hostfile  
    3.  * epel: mirrors.yun-idc.com  
    4. Excluding Packages in global exclude list  
    5. Finished  
    6. Installed Packages  
    7. Name       : nginx  
    8. Arch       : x86_64  
    9. Version    : 0.8.55  
    10. Release    : 6.el5  
    11. Size       : 984 k  
    12. Repo       : installed  
    13. Summary    : Robust, small and high performance HTTP and reverse proxy server  
    14. URL        : http://nginx.net/  
    15. License    : BSD  
    16. Description: Nginx [engine x] is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3  
    17.            : proxy server written by Igor Sysoev.  



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

    [plain] view plain copy 在CODE上查看代码片派生到我的代码片
    1. # yum remove nginx  


    3.安装并启动nginx

    [plain] view plain copy 在CODE上查看代码片派生到我的代码片
    1. # yum install nginx  
    2. # service nginx start  


    4.浏览器访问

    http://192.168.0.168/

    返回结果如下表示成功

    [plain] view plain copy 在CODE上查看代码片派生到我的代码片
      1. Welcome to nginx on EPEL!  
      2. 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.  
      3.   
      4. Website Administrator  
      5. This is the default index.html page that is distributed with nginx on EPEL. It is located in /usr/share/nginx/html.  
      6.   
      7. 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.  
      8.   
      9. [ Powered by nginx ]  [ Powered by Fedora EPEL ] 
  • 相关阅读:
    编写高质量Python代码的59个有效方法
    排序NB三人组(快速排序/堆排序/归并排序)
    排序之插入排序
    编写高质量代码 改善Python程序的91个建议——笔记(三)
    ImportHelper 导出帮助类
    使用Layer弹出一个页面
    MongoDB使用手册
    MVC4设置@Html.BeginForm的ID
    LayerManage
    Layer弹窗返回数据回调
  • 原文地址:https://www.cnblogs.com/zhangym/p/5833358.html
Copyright © 2011-2022 走看看