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
    GitHub 使用教程图文详解
    linux下搭建hexo环境
    linux 删除软链接
    Django2.1入门教程
    windows下安装PyQt4
    python3 Flask安装
    学习之源
    白话C++系列教程
    面试笔试试题精选
  • 原文地址:https://www.cnblogs.com/zhangym/p/5833358.html
Copyright © 2011-2022 走看看