Linux配備基本コマンド


tomcat bin   
chmod 755 *       //          
vi .bashrc       //      
  esc  ,   :wq!   //               
source .bashrc   //       

ps -ef | grep tomcat
kill -9 

##################    jdk   tomcat
JAVA_HOME=/usr/java/jdk1.6.0_45
JRE_HOME=/usr/java/jdk1.6.0_45/jre
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
CLASSPATH=.:$JAVA_HOME/lib/jt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
export PATH  CLASSPATH  JAVA_HOME JRE_HOME

export  CATALINA_HOME=/home/lbs/localhost/apache-tomcat-6.0.37
export  CATALINA_BASE=/home/lbs/localhost/apache-tomcat-6.0.37
export  TOMCAT_HOME=/home/lbs/localhost/apache-tomcat-6.0.37
##################

     
/etc/init.d/iptables status  //       
/etc/init.d/iptables stop    //     
/etc/init.d/iptables restart   //     
/etc/init.d/iptables start   //     
vi /etc/sysconfig/iptables    //                   


      :
useradd –d /home/web -m andy  //      ,      home/web           web  
passwd andy   //    andy     

rm -rf /root/test1/  //  test1   

ls xxx.*.log //    xxx   
tailf  xxxxx.log  //      
ctrl + c     Log