javaÈçºÎ¿ØÖÆÔ¶³ÌLinuxÖØÆô
ÎÒĿǰÔÚ±¾µØµÄlinuxÉÏдÁËÒ»¸öswingµÄ½çÃæ£¬Ïëͨ¹ýÕâ¸ö½çÃæÀ´¿ØÖÆÆäËüµçÄÔµÄlinuxÖØÆô¡£
ÎÒÖªµÀÓÃRuntime.getRuntime().exec("shutdown -r");¿ÉÒÔ¿ØÖƱ¾»úLinuxÖØÆô£¬µ«ÊÇÔõô¿ØÖÆÔ¶³ÌµÄlinuxÖØÆôÄØ£¿
±ÈÈçÎҵĵØÖ·ÊÇ£º202.115.132.80 ,Ô¶³ÌµÄÊÇ202.115.132.81,¶¼ÔÚ¾ÖÓòÍøÄÚ£¬ÎÒ»¹ÓÐ81µÄrootµÄÕ˺š£ÎÒÏÖÔÚÏ£Íû81Éϲ»ÓÃ×öÈκÎÅäÖ㬶øÎÒ¾ÍÔÚ±¾»úÉÏдjava³ÌÐòÀ´¿ØÖÆ81µÄÖØÆô£¿ÇëÎʸÃÔõôʵÏÖÁË£¿
Õâ¿ÉÄÑÁË£¬±ð˵linuxÁË£¬¾ÍÊÇ¿ØÖÆwindows´ÓÆô¶¼ÎÞ´ÓÏÂÊÖ°¡¡£È¥¿´Ô´Âë°É¡£»òËд¹ýÔ¶³Ì¿ØÖƵÄ×é¼þÄÃÀ´Óðɡ£
¿´¿´Õâ¸ö¡£JSCHÊÇÒ»¸öJAVAÔ¶³ÌÁ¬½ÓµÄ¿â£¬¿ÉÒÔSSHµÇ¼¡£ÎÒûÓùý£¬Äã¿ÉÒÔÊÔÊÔSSHµÇ¼·þÎñÆ÷ºóÄÜ·ñÖ´ÐÐÃüÁîÐС¯restart'À´ÖØÆôµçÄÔ
http://www.jcraft.com/jsch/
up...
Õâ·½ÃæÒ»Çϲ»Í¨..
linux²»ÐèÒª½øÈëϵͳ¾Í·þÎñ¾Í¿ÉÒÔÔËÐеģ¬
ËùÒԺͽøÈëϵͳûÓÐʲô¹ØÏµ
°´ÕÕÕâÑù·ÖÎö£¬ÆäʵҲ²»ÐèÒªRMIÖ±½ÓÁ½±ß½¨Á¢socketͨÐÅ£¬ÊÕµ½ÏûÏ¢Ö±½Óµ÷ÓÃ
reboot¾ÍÐÐ
up...
ºÃµÄ¡£ÄǾ;;ö¶¨²ÉÓÃsocketµÄͨÐÅ·½Ê½£¬²»½ö½ö¿ØÖÆLinuxµÄÖØÆô£¬»¹ÓÐtomcat£¬Êý¾Ý¿âmysqlµÄÖØÆô
{{
Ïà¹ØÎÊ´ð£º
¸ø¸öµØÖ·£¬»òÕß·¢µ½ÎÒÓÊÏäÒ²ÐÐ wrongagain98@163.com
×îºÃÊÇÊÓÆµµÄ£¬²»ÊÇÊÓÆµÆÕͨµÄÒ²ÐС£
Ö÷ÒªÊÇÁ½·½Ã棺
1.ÔõÑù±à¼¡¢±àÒëºÍµ÷ÊÔ³ÌÐò¡£Ï£ÍûÄÜÒ»²½²½½²Çå³þ£¬ÈçºÎ°²×°¡¢ÈçºÎÅäÖõȡ£²»Òª¾Íֻ˵¾ä¡°¾ÍÓ ......
ÔÚlinuxÉÏʹÓÃtomcat·þÎñÆ÷³öÏÖÁ˺ܶàclose_wait
ʹÓÃä¯ÀÀÆ÷·ÃÎʵÄʱºò³öÏÖÒ³ÃæÒ»Ö±ÔÚÇëÇ󣬺ÜÂý £¬»ù±¾ÉÏûÓлØÓ¦¡£
ÓÃnetstat -anp ²é¿´ Óкܶàclose_wait
Õâ¸öÊÇʲôÒýÆðµÄ°¢ £¬Ôõô½â¾ö£¿
......
Á½Ì¨»úÆ÷ÐͺÅÍêȫһÑù
ÏëÒª°Ñһ̨»úÆ÷µÄÄÚºËÅäÖÃÎļþ¿½±´¸øÁíÍâһ̨
RT
3Q
...
.config Òþ²ØµÄ ÔÚÄãÅäÖùýÄں˺ó¾ÍÉú³ÉÁË
lsÕý½â£¬ÔÚkernelÔ´Âë¶¥²ãĿ¼ÖÐÓиö.configÎļþ£¬ÅäÖ ......
LinuxÐÂÊÖ£¬Çë´ó¸ç´ó½ã²»Òª¼ûЦ¡£
ÎÒÓÃrootÓû§µÇ¼µ½Linuxϵͳ¡£ÔÚ¸ùĿ¼ÏÂÃæ½¨ÁËĿ¼dir1£¬ºóÓÃÃüÁîcd /dir1½øÈëµ½dir1Ŀ¼Ï£¬È»ºóÔÙÓÃmkdir dir2½¨Á¢ÁËĿ¼dir2 £¬ÔÙºóÀ´ÓÃÃüÁîcd /dir2ÊÇ£¬ÌáʾΪ£º-bush ......
ÎÒһ̨serverÖÐÒ»¸öÎļþ¼ÐÖÐÓдóÔ¼2000¸öÎļþ¼Ð£¬ÀïÃæ¶¼ÓдóÁ¿Êý¾Ý£¬ÏÖÔÚÎÒÏë°ÑÆäÖÐÒ»²¿·Ö(´ó¸Å1000¸öÎļþ¼Ð)ÒÆ¶¯µ½Ò»¸öÐÂÎļþ¼ÐÖУ¬Ó¦¸ÃÔõô²Ù×÷¡£Îļþ¼ÐµÄÃüÃûÊÇûÓйæÂɵġ£
ÎÒ³õ²½ÉèÏëÊÇ ......