锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲一卡二卡三卡,亚洲Av无码国产一区二区,7777久久亚洲中文字幕http://www.tkk7.com/xiaodong0417/category/51479.htmlJava Studyzh-cnThu, 17 Jan 2013 12:01:13 GMTThu, 17 Jan 2013 12:01:13 GMT60Linux 涓婃湇鍔$殑瀹夎浠ュ強紺轟緥錛欰pache鏈嶅姟鐨勫畨瑁咃紙杞級http://www.tkk7.com/xiaodong0417/archive/2013/01/17/394342.html鐜嬫爲涓?/dc:creator>鐜嬫爲涓?/author>Thu, 17 Jan 2013 02:23:00 GMThttp://www.tkk7.com/xiaodong0417/archive/2013/01/17/394342.htmlhttp://www.tkk7.com/xiaodong0417/comments/394342.htmlhttp://www.tkk7.com/xiaodong0417/archive/2013/01/17/394342.html#Feedback0http://www.tkk7.com/xiaodong0417/comments/commentRss/394342.htmlhttp://www.tkk7.com/xiaodong0417/services/trackbacks/394342.html1. chkconfig鑴氭湰鏍煎紡錛?/div>
#!/bin/sh
#chkconfig 2345 55 45
#涓婇潰涓哄浐瀹氭牸寮忥細2345 琛ㄧず榪愯綰у埆錛?5琛ㄧず寮鏈烘墽琛岄『搴忥紝45涓哄叧鏈洪『搴?
#description錛歵his is just a demo of chkconfig script
case “$1” in
start)
<start-script>
;;
Stop)
<stop-script>
;;
Status)
Echo <the information you want to display>
;;
*)
Echo “the usage of the script”
Case
2. 鐒跺悗灝嗚剼鏈繚瀛?騫惰祴浜堟墽琛屾潈闄?鍐嶅鍒跺埌/etc/init.d鐩綍
#chmod a+x <myscript>
#copy <myscript> /etc/init.d
3. 浣跨敤chkconfig鍛戒護娣誨姞鎴愭湇鍔?
#chkconfig --add <myscript>
#chkconfig --level 35 <myscript > on
#chkconfig --list <myscript>
4. 鐒跺悗灝卞彲浠ラ氳繃service鍛戒護綆$悊浜?
#service <myscript> start | stop | status
5. 涓嬮潰鏄垜鍐欑殑涓涓疄渚嬭剼鏈紝澶у鍙互鍙傝冧竴浜涙牸寮忥細
#!/bin/sh
#chkconfig: 2345 99 99
#description:the script to set the network at run level 2345
IN=eth0
OUT=eth1
HOST_NAME=cluster1.yang.com
INIP=192.168.10.10
OUTIP=192.168.136.10
MASK=255.255.255.0
IP=/sbin/ip
IFC=/sbin/ifconfig
ROUTE=/sbin/route
#flush the address
case "$1" in
start)
#echo "flush the address..."
#$IP addr flush dev eth0
#$IP addr flush dev eth1
echo "set the address..."
$IFC $IN $INIP netmask $MASK up
$IFC $OUT $OUTIP netmask $MASK up
echo "set the hostname..."
hostname $HOST_NAME
echo "set the default gateway..."
$IP route flush all
$ROUTE add default gw 192.168.136.2
echo "finshed!!!"
;;
stop)
echo "flush the network setting..."
$IP addr flush dev eth0
$IP addr flush dev eth1
echo "flush finshed!!!"
;;
status)
echo "hostname is $HOST_NAME"
$IFC eth0
$IFC eth1
;;
*)
echo "requires start,stop or status"
;;
esac
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------

鍦↙inux涓璫hkconfighttpd浠誨姟娣誨姞錛孉pache鏈嶅姟鍣ㄧ殑鏈鏂扮ǔ瀹氬彂甯冪増鏈槸httpd-2.2..0,瀹樻柟涓嬭澆鍦板潃鏄細http://httpd.apache.org/download.cgi銆傛垜浠氳繃涓嬮潰鐨勬楠ゆ潵蹇熺殑鎼緩涓涓獁eb鏈嶅姟鍣ㄣ?/p>

1銆佷笅杞芥簮鐮佹枃浠秇ttpd-2.2.0.tar.gz 鍒發inux鏈嶅姟鍣ㄧ殑鏌愪釜鐩綍銆?br />2銆佽В鍘嬫枃浠?# tar zxvf httpd-2.2.0.tar.gz .
3銆侀厤緗?# ./configure –refix=/usr/local/apache //鎸囧畾瀹夎鐩綍錛屼互鍚庤鍒犻櫎瀹夎灝卞彧闇鍒犻櫎榪欎釜鐩綍銆?br />4銆佺紪璇戝拰瀹夎銆?# make ; make install .
5銆佺紪鍐欏惎鍔ㄨ剼鏈紝鎶婂畠鏀懼埌鐩綍 /etc/rc.d/init.d/閲岋紝榪欓噷鍙栧悕涓篽ttpd,鍏跺唴瀹瑰涓嬶細
 

  1. #!/bin/bash  
  2. #description:http server  
  3. #chkconfig: 235 98 98  
  4. case "$1" in  
  5. start)  
  6. echo "Starting Apache daemon..."  
  7. /usr/local/apache2/bin/apachectl -k start  
  8. ;;  
  9. stop)  
  10. echo "Stopping Apache daemon..."  
  11. /usr/local/apache2/bin/apachectl -k stop  
  12. ;;  
  13. restart)  
  14. echo "Restarting Apache daemon..."  
  15. /usr/local/apache2/bin/apachectl -k restart  
  16. ;;  
  17. status)  
  18. statusproc /usr/local/apache2/bin/httpd  
  19. ;;  
  20. *)  
  21. echo "Usage: $0 {start|stop|restart|status}"  
  22. exit 1  
  23. ;;  
  24. Esac  

 

娉ㄦ剰錛?description:http server 榪欎竴琛屽繀欏誨姞涓?/strong>錛屽惁鍒欏湪鎵ц鍛戒護

 # chkconfig –add httpd

鏃朵細鍑虹幇“service apache does not support chkconfig”鐨勯敊璇姤鍛娿?/p>

#chkconfig: 2345 98 98 琛ㄧず鍦ㄦ墽琛屽懡浠?/p>

 # chkconfig –add httpd 鏃朵細鍦ㄧ洰褰?/etc/rc2.d/ 銆?etc/rc3.d/ /etc/rc5.d 鍒嗗埆鐢熸垚鏂囦歡 S98httpd鍜?K98httpd銆傝繖涓暟瀛楀彲浠ユ槸鍒殑銆?/p>

6銆佹墽琛屽懡浠?# chkconfig –add httpd 錛岃繘鍏ョ洰褰?etc/rc3.d/媯鏌ユ槸鍚︾敓鎴愭枃浠? S98httpd鍙奒98httpd.
7銆佸惎鍔ㄦ湇鍔?# service httpd start .



]]>
Groovy Eclipse 鎻掍歡瀹夎澶辮觸http://www.tkk7.com/xiaodong0417/archive/2011/11/20/364373.html鐜嬫爲涓?/dc:creator>鐜嬫爲涓?/author>Sun, 20 Nov 2011 13:33:00 GMThttp://www.tkk7.com/xiaodong0417/archive/2011/11/20/364373.htmlhttp://www.tkk7.com/xiaodong0417/comments/364373.htmlhttp://www.tkk7.com/xiaodong0417/archive/2011/11/20/364373.html#Feedback0http://www.tkk7.com/xiaodong0417/comments/commentRss/364373.htmlhttp://www.tkk7.com/xiaodong0417/services/trackbacks/364373.html 鐒跺悗鍙兘鍦ㄧ綉涓婃壘鍒版彃浠剁殑鍘嬬緝鍖咃紝涓嬭澆鍚庡啀瀹夎灝卞ソ浜嗐傛楠ゅ涓嬶細
1.    涓嬭澆groovy 鎻掍歡鐨勫畨瑁呭寘錛岄摼鎺ワ細
        For Eclipse 3.7:
        http://dist.springsource.org/release/GRECLIPSE/e3.7/archive-2.5.1.xx-20110628-1600-e37.zip 
        For Eclipse 3.6: 
        http://dist.springsource.org/release/GRECLIPSE/e3.6/archive-2.5.1.xx-20110627-1300-e36.zip

2.    榪涘叆eclipse瀹夎鎻掍歡鐨勯〉闈紝鐐瑰嚮Add 娣誨姞鏂扮殑鎻掍歡錛屽湪寮瑰嚭鐨勫璇濇涓夋嫨Archieve
        鐒跺悗閫夋嫨涓嬭澆鐨勫帇緙╂枃浠訛紝瀹夎灝卞彲浠ヤ簡銆?img src ="http://www.tkk7.com/xiaodong0417/aggbug/364373.html" width = "1" height = "1" />

]]>
主站蜘蛛池模板: 亚洲精品无AMM毛片| 亚洲va乱码一区二区三区| 一级做a爰性色毛片免费| 国产色爽免费视频| 小说专区亚洲春色校园| 日本a级片免费看| 猫咪www免费人成网站| 亚洲成a人片在线播放| 精品免费久久久久国产一区| 中文字幕亚洲综合久久菠萝蜜 | 日本久久久久亚洲中字幕| 亚欧免费无码aⅴ在线观看| 色噜噜综合亚洲av中文无码| 美女被免费喷白浆视频| 亚洲男同gay片| 爱情岛论坛网亚洲品质自拍| 免费久久人人爽人人爽av| 久久久久亚洲AV片无码下载蜜桃| 最近中文字幕国语免费完整| 亚洲一区精品视频在线| 女人张开腿等男人桶免费视频| 亚洲av成人片在线观看| 亚洲午夜福利精品久久| 美女视频黄的免费视频网页 | 学生妹亚洲一区二区| 免费亚洲视频在线观看| 91视频精品全国免费观看| 久久久久亚洲精品天堂| 免费看片A级毛片免费看| 一级毛片视频免费观看| 亚洲白色白色永久观看| 麻豆国产入口在线观看免费 | 亚洲中文字幕无码中文| 亚洲精品线路一在线观看| 久99久精品免费视频热77| 亚洲国产无线乱码在线观看| 亚洲色精品88色婷婷七月丁香| 四虎免费影院ww4164h| 污污免费在线观看| 久久亚洲sm情趣捆绑调教| 日韩一级免费视频|