• 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 ] 
  • 相关阅读:
    struts2的结果类型
    struts2的基本配置
    struts2拦截器
    struts2入门程序
    struts2工作原理
    Mysql处理字符串函数(转)
    oracle调用java方法的例子(下面所有代码都是在sql/plus中写)
    Oracle数据库中调用Java类开发存储过程、函数的方法
    Oracle触发器反向调用Java程序
    javaweb项目打包成war包
  • 原文地址:https://www.cnblogs.com/zhangym/p/5833358.html
Copyright © 2020-2023  润新知