LINUX命令
1.压缩文件夹 tar zcvf 压缩名.tar.gz 文件夹名字( jar -xvf project.war /project_a)
2.解压文件夹 tar zxfv 文件夹压缩名( jar -xvf project.war)
将/home/wwwroot/xahot/ 这个目录下所有文件和文件夹打包为当前目录下的xahot.zip
zip –q –r xahot.zip /home/wwwroot/xahot
unzip 文件名字
3.权限不足 chmod 777 *
4.linux防火墙打开关闭(查询防火墙状态 service iptables status)
(1) 重启后永久性生效:
开启:chkconfig iptables on 关闭:chkconfig iptables off
(2) 即时生效,重启后失效:
开启:service iptables start 关闭:service iptables stop
5.查看tomcat进程 ps -ef |grep tomcat
6. 根据名字查找文件 find /etc -name “xxxx”
7. scp -r 用户名@IP:绝对地址
8.复制
cp ifs.war 绝对位置
9.重命名
mv 现有名字 未来名字
10.修改服务器时间
日期:
date -s 29/3/2017
时间
date -s 12:20:23
1.压缩文件夹 tar zcvf 压缩名.tar.gz 文件夹名字( jar -xvf project.war /project_a)
2.解压文件夹 tar zxfv 文件夹压缩名( jar -xvf project.war)
将/home/wwwroot/xahot/ 这个目录下所有文件和文件夹打包为当前目录下的xahot.zip
zip –q –r xahot.zip /home/wwwroot/xahot
unzip 文件名字
3.权限不足 chmod 777 *
4.linux防火墙打开关闭(查询防火墙状态 service iptables status)
(1) 重启后永久性生效:
开启:chkconfig iptables on 关闭:chkconfig iptables off
(2) 即时生效,重启后失效:
开启:service iptables start 关闭:service iptables stop
5.查看tomcat进程 ps -ef |grep tomcat
6. 根据名字查找文件 find /etc -name “xxxx”
7. scp -r 用户名@IP:绝对地址
8.复制
cp ifs.war 绝对位置
9.重命名
mv 现有名字 未来名字
10.修改服务器时间
日期:
date -s 29/3/2017
时间
date -s 12:20:23