• <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 閱讀(955) 評論(0)  編輯 收藏 引用
            欧美一级久久久久久久大| 超级碰久久免费公开视频| 久久狠狠一本精品综合网| 久久久久久国产精品免费无码| 久久综合九色欧美综合狠狠| 99久久国产综合精品网成人影院| 久久青青草原精品国产| 亚洲欧美伊人久久综合一区二区| 中文成人无码精品久久久不卡| 久久AAAA片一区二区| 精品久久久久久99人妻| 国产叼嘿久久精品久久| 国产成人久久久精品二区三区| 成人久久综合网| 国产Av激情久久无码天堂 | 久久精品国产亚洲AV无码娇色 | 久久妇女高潮几次MBA| 色综合久久久久综合99| 色偷偷88欧美精品久久久| 久久精品成人免费观看97| 久久人人爽人人澡人人高潮AV | 久久综合五月丁香久久激情| 久久久国产精品| 日本亚洲色大成网站WWW久久 | 性做久久久久久免费观看| 久久中文字幕无码专区| 久久伊人五月丁香狠狠色| 久久天天躁狠狠躁夜夜不卡 | 2021精品国产综合久久| 久久精品国产秦先生| 久久黄视频| 狠狠色丁香婷婷久久综合| 久久久一本精品99久久精品66| 精品久久久久久久无码| 91久久精品电影| 亚洲欧美国产精品专区久久| 亚洲国产精品无码久久久不卡 | 亚洲国产精品婷婷久久| 久久一区二区三区免费| 久久无码人妻一区二区三区| 精品国产91久久久久久久 |