• <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 閱讀(962) 評論(0)  編輯 收藏 引用
            亚洲伊人久久大香线蕉苏妲己| 久久精品中文字幕无码绿巨人| 国内精品久久久久久久涩爱| 国产福利电影一区二区三区久久老子无码午夜伦不 | 久久精品午夜一区二区福利| 无码人妻久久一区二区三区蜜桃| 久久99热这里只有精品国产| 天天做夜夜做久久做狠狠| 久久毛片免费看一区二区三区| 国内精品久久久久久久久电影网| 久久国产精品成人影院| 久久99精品九九九久久婷婷| 国产精品久久久久蜜芽| 久久精品一区二区三区不卡| 久久夜色精品国产www| 久久精品亚洲精品国产色婷 | 国产精品久久久久乳精品爆| 亚洲国产日韩欧美久久| 久久精品国产99久久久| 久久久WWW成人免费精品| 日韩精品久久无码中文字幕| 精品久久久久中文字| AV无码久久久久不卡网站下载| 久久亚洲视频| 久久免费高清视频| 日韩人妻无码一区二区三区久久 | 久久久综合香蕉尹人综合网| 99精品久久精品| 五月丁香综合激情六月久久| 久久久精品国产亚洲成人满18免费网站 | 国产日产久久高清欧美一区| 亚洲日本va午夜中文字幕久久 | 97久久精品人人澡人人爽| 亚洲va中文字幕无码久久不卡| 久久精品国产72国产精福利| 99久久婷婷国产综合亚洲| 亚洲午夜久久久影院| 97精品国产97久久久久久免费| 人妻少妇精品久久| 久久综合色之久久综合| 久久久久成人精品无码|