centos随笔
firewall-cmd --permanent --add-port=40022/tcp
firewall-cmd --reload
netstat -an
systemctl start firewalld.service
systemctl stop firewalld.service
netstat -lnp|grep 80
ps -ef|grep tomcat
如tomcat启动很慢的话,试试
JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom"
tomcat xml配置
<Host name="localhost" appBase="webapps"
unpackWARs="false" autoDeploy="false">
log搜索
cat -n catalina.out |grep "18717186591"
Linux 如何显示一个文件的某几行
cat catalina.out | tail -n +3756865 | head -n 200
linux复制指定目录下的全部文件到另一个目录中,linux cp 文件夹
cp -r dir1/. dir2
mysql备份数据库脚本
mysqldump -h 118.178.243.76 appointment -u root -pZnkj@123 --port=13306 --default-character-set=utf8 > appointment.sql