• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            XGuru's Blog

            技術,是一種態度。關注:高性能后端技術/服務器架構/C++/C/LAMP

               :: 首頁 :: 聯系 :: 聚合  :: 管理
              20 Posts :: 0 Stories :: 93 Comments :: 0 Trackbacks

            公告





            twitter / xoXGuru

            feedsky
            抓虾
            google reader
            鲜果
            QQ邮箱
            九点

            常用鏈接

            留言簿(12)

            搜索

            •  

            最新評論

            閱讀排行榜

            2010-12-29-update:找到一個最新的版本,由jason提供,地址在這


            上網找了幾個版本在ubuntu下都用不了
            于是就自己重新修改了jackbillow的版本,用起來感覺還不錯.



            Usage: nginx.sh {start|stop|conf|restart}
            //開始|停止|配置|重啟

            注:需要以管理員身份運行


            ################################################
            #!/bin/bash
            # v.0.0.3
            # create by jackbillow at 2007.10.15
            # redevelop by XGuru at 2010.6.28
            # On Ubuntu 10.04
            # nginx - This shell script takes care of starting and stopping nginx.
            #
            # description: nginx [engine x] is light http web/proxy server
            # that answers incoming ftp service requests.
            ###############################################


            nginx_path
            ="/usr/local/nginx"
            nginx_pid
            ="/usr/local/nginx/logs/nginx.pid"
            prog="nginx"

            RETVAL=0


            start() {
            # Start daemons.
                    if [ -$nginx_path/conf/nginx.conf ];then
                      echo 
            -n $"Starting $prog: "
                      
            $nginx_path/sbin/nginx -$nginx_path/conf/nginx.conf &
                      RETVAL
            =$?
                    [ 
            $RETVAL -eq 0 ] && {
                    echo Start 
            "$prog" successfully!
                    }
                    
            else
                    RETVAL
            =1
                    fi
                    
            return $RETVAL
            }
            # Stop daemons.
            stop() {
                    echo 
            -n $"Stopping $prog\n"
                    sudo killall 
            -9 nginx
                    RETVAL
            =$?
            }
            # See how we were called.

            conf(){
                    gvim 
            "$nginx_path/conf/nginx.conf"
            }
            case 
            "$1" in
            start)
                    start
                    ;;
            stop)
                    stop
                    ;;
            conf)
                    conf
                    ;;        
            restart)
                    stop
                    start
                    ;;

            *)
                    echo $
            "Usage: $0 {start|stop|conf|restart}"
                    echo $
            "Your may need root privilege to execute this script!"
                    
            exit 1
            esac
            exit $RETVAL

            --EOF--
            posted on 2010-06-28 16:43 XGuru 閱讀(960) 評論(0)  編輯 收藏 引用
            香蕉久久夜色精品升级完成| 久久亚洲AV成人无码软件| 国产成人综合久久综合 | 久久久久97国产精华液好用吗| 亚洲综合久久综合激情久久| 综合久久久久久中文字幕亚洲国产国产综合一区首 | 久久婷婷五月综合97色直播 | 久久99精品久久久久久久久久 | 女人高潮久久久叫人喷水| 久久永久免费人妻精品下载| 国产精品欧美久久久天天影视| 精品人妻伦一二三区久久 | 日本加勒比久久精品| 亚洲欧美日韩久久精品第一区| 国产午夜福利精品久久| 性做久久久久久久| 精品久久综合1区2区3区激情| 国产美女久久精品香蕉69| 久久亚洲国产成人影院| 国产一久久香蕉国产线看观看| 久久精品国产99国产精品亚洲| 国产激情久久久久影院老熟女免费| av午夜福利一片免费看久久| 无码任你躁久久久久久久| 久久久久香蕉视频| 人人狠狠综合久久亚洲婷婷| 久久精品无码午夜福利理论片| 思思久久精品在热线热| 伊人久久大香线蕉综合5g| 天天做夜夜做久久做狠狠| 精品无码久久久久久久动漫| 99精品伊人久久久大香线蕉| 一本大道加勒比久久综合| 天天综合久久久网| 国产视频久久| 欧美久久久久久精选9999| 久久亚洲高清综合| 亚洲伊人久久成综合人影院 | 久久国产成人午夜aⅴ影院 | 久久午夜无码鲁丝片秋霞 | 1000部精品久久久久久久久|