• <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

            技術(shù),是一種態(tài)度。關(guān)注:高性能后端技術(shù)/服務(wù)器架構(gòu)/C++/C/LAMP

               :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
              20 Posts :: 0 Stories :: 93 Comments :: 0 Trackbacks

            公告





            twitter / xoXGuru

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

            常用鏈接

            留言簿(12)

            搜索

            •  

            最新評論

            閱讀排行榜

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


            上網(wǎng)找了幾個版本在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 閱讀(976) 評論(0)  編輯 收藏 引用

            只有注冊用戶登錄后才能發(fā)表評論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


            欧美性大战久久久久久| 欧美黑人激情性久久| 国产精品亚洲美女久久久| 青青青国产成人久久111网站| 热re99久久精品国产99热| 日韩久久久久中文字幕人妻| 久久SE精品一区二区| 久久99国产精品一区二区| 久久夜色精品国产www| 久久久久人妻精品一区| 精品久久久久一区二区三区 | 伊人久久综合成人网| 99久久精品午夜一区二区| 日韩电影久久久被窝网| 波多野结衣中文字幕久久| 无码8090精品久久一区| 国内精品伊人久久久久av一坑| 亚洲人成无码网站久久99热国产 | 51久久夜色精品国产| 精品久久久久成人码免费动漫| 久久99热国产这有精品| 色欲av伊人久久大香线蕉影院| 久久996热精品xxxx| 久久91精品久久91综合| 性欧美丰满熟妇XXXX性久久久| 久久久久18| 国产精品99久久久久久宅男| 久久久久亚洲AV无码网站| 久久无码高潮喷水| 久久综合一区二区无码| 久久国产成人| 精品久久久久久久久久久久久久久 | 欧美日韩精品久久免费| 久久久久国产视频电影| 伊人久久大香线蕉精品| 九九99精品久久久久久| 国产麻豆精品久久一二三| 国内精品伊人久久久久777| 久久人人爽人人人人爽AV| 国产精品久久婷婷六月丁香| 一本久久综合亚洲鲁鲁五月天亚洲欧美一区二区 |