JAVA?????????????linux????
???????????? ???????[ 2014/2/27 13:56:03 ] ????????JAVA linux ???? ????
????????????
????1.??compose Bar???????????????????в????????To All Sessions
????2. ??JAVA?????
????ps -ef | grep java
????ps auxf | grep java
????3.???JAVA?????
????pkill java ?????з??????????????????????java?????
????kill -9 ????ID
????ps -ef | grep "Dcatalina.base=/usr/oa/appserver" | grep -v "grep" | awk '{print $2} ' | xargs kill -9
????4.????????г???
????cd /usr/oa/bin (???????????)
????cd .. (?????????)
????./startup.sh ./stop.sh (??е?????μ????)
????5.??????????
????su root ???л???root????£?
????6.??????
????ll ?????????????????
????ls??????????????????
????7.??linux????????????
????1)???vi?????????????vi index.jsp
????2)??????????????????i ???????
????3)???????esc??????? shift+e?? ??????wq
????8.????????????
????df -h
????9.?????????建?????????
????1.?????????pwd
????2.????????rm -rf ???????
????10.???????
????cp -r /user/oa /usr_back_oa
????11.?????
????tail -r catalina.out
????tail -n 300 catalina.out
????12.?????
????cat fileName.xml
????13.??IP????????????????
????ifconfig --??IP??????????????if?????????ip
????service sshd status --??sshd???????
????service sshd start --???sshd???????
????chkconfig --list
????chkconfig --list | grep sshd ?????÷???
????14.?г?????????????????
????lsof -n|awk '{print $2}' |sort|uniq -c |sort -nr|more
??????????JAVA??????????
????ps -ef| grep java | awk '{print $2}' | awk 'NR==1'| xargs lsof -p | wc -l
????15.?????ps -ef|grep java???????12120???????
????lsof -p 12120 |wc -l
????16.?tomcat???????????sudo??username??????
????sudo chown -R username /Users/username/Documents/tomcat
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11