ubu 简单操作

#同步用户资源
 source .profile
寻找tomcat环境变量
$CATALINA_HOME/bin
#启动tomcat
bin/startup.sh
#停止tomcat
bin/shutdown.sh
#看tomcat的控制台输出;
    tail -f logs/catalina.out
#看是否已经有tomcat在运行了
   ps -ef |grep tomcat 
#用kill;杀死相应的进程号  
   kill -9 pid #pid  

#直接查看指定端口的进程pid
   netstat -anp|grep 9217

ubuntu 9.10 重启网卡|网络服务
~$ sudo /etc/init.d/networking restart
或者
~# /etc/init.d/networking restart

猜你喜欢

转载自jiangyaning8.iteye.com/blog/1312288
ubu