zoukankan      html  css  js  c++  java
  • yum安装nginx详解

    原文: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 ]
  • 相关阅读:
    Skype 1.4 for Linux 掉丢掉更新
    Skype 1.4 for Linux 失掉更新
    DiffMerge:可视化的文件相比与兼并东西
    Qt 4.3 公布揭晓
    Netscape Navigator 9 Beta 1 颁布
    Qtpfsgui:HDR 图片处置责罚器材
    Akregator 运用评测
    PenguinTV 3.0
    Exchange Server 2003备份
    Windows 编程[13] 菜单与菜单资源(二)
  • 原文地址:https://www.cnblogs.com/shihaiming/p/6290040.html
Copyright © 2011-2022 走看看