• <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)  編輯 收藏 引用
            中文字幕乱码久久午夜| 丁香五月网久久综合| 国产真实乱对白精彩久久| 国产成人精品久久亚洲| 久久九色综合九色99伊人| 久久人人爽人人爽人人片AV麻豆| 日韩AV毛片精品久久久| 久久这里只精品99re66| 久久中文精品无码中文字幕| 四虎国产精品成人免费久久| 亚洲国产精品久久| 伊人久久大香线蕉AV一区二区| 2021久久国自产拍精品| 久久久久久国产精品美女| AV狠狠色丁香婷婷综合久久| 久久天天躁夜夜躁狠狠| 91精品国产色综合久久| 狠狠色婷婷久久综合频道日韩 | 国产精品久久久久影院色 | 亚洲va久久久噜噜噜久久| 国产精品一区二区久久| 亚洲国产精品无码久久SM| 欧美久久久久久| 久久激情亚洲精品无码?V| 久久美女网站免费| 精品国产乱码久久久久久1区2区 | 婷婷综合久久狠狠色99h| 久久久久久久女国产乱让韩| 久久影院久久香蕉国产线看观看| 国产精品九九久久免费视频| 久久综合狠狠色综合伊人| 99精品久久精品一区二区| 久久香蕉超碰97国产精品| 久久国产欧美日韩精品| 亚洲AV日韩AV永久无码久久| 久久久久久久精品妇女99| 色综合合久久天天给综看| 伊人久久大香线蕉综合5g| 精品国产乱码久久久久久呢| 久久精品人人做人人爽电影| 一本色综合网久久|