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 ] 
  • 相关阅读:
    MySql优化-你的SQL命中索引了吗
    php根据两点经纬度算距离
    二维数组排序
    php 求对数
    socket,websocket,socketio之间的关系
    PHP获取两个时间戳间的所有日期
    通过动画理解Raft公式算法
    Fabric创建通道、组织加入通道
    查看进程线程的方法
    Fabric添加节点
  • 原文地址:https://www.cnblogs.com/zhangym/p/5833358.html
Copyright © 2011-2022 走看看