标签:class tomcat 服务 script 发行版 ice aliyun eth0 linu
cat /etc/redhat-release lsb_release -a
init 3 init5 vi /etc/inittab
cd /etc/yum.repos.d ll
配置aliyun的yum源:http://mirrors.aliyun.com/help/centos
vi /etc/resolv.conf service network restart
vi /etc/sysconfig/network-scripts/ifcfg-eth0 service network restart
tar -tvf filename.tar.gz
gzip -d filename.tar.gz
tar xvf filename.tar.gz -C /usr/file
tar cvfz test.tar.gz file1 file2
tar -tvf myfile.tar
tar xvf filename.tar -C /usr/file
gzip filename.tar
tar cvf test.tar file1 file2
unzip -l filename.zip
unzip filename.zip -d /usr/dile
zip -r test.zip file1 file2 dir1
ps -ef |grep tomcat
netstat -anp|grep 23216
lsof -i:80 netstat -lnp|grep 80
关闭进程
kill –9 23216
[root@localhost /]# su username
[test@localhost /]$ su
标签:class tomcat 服务 script 发行版 ice aliyun eth0 linu
原文地址:http://www.cnblogs.com/ywlaker/p/6193960.html