![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
totally123
这个作者很懒,什么都没留下…
展开
-
Linux重启Tomcat常用脚本
#!/bin/bash# kill process ps -ef|grep 'artworks'|grep -v 'grep'|awk '{print $2}'|xargs kill -s 9# clean cache remove -rf webapps/* work/* temp/*# start tomcat ./bin/startup.sh# monitor log tail -f logs原创 2017-11-28 17:27:37 · 221 阅读 · 0 评论 -
Linux常用命令
开启、关闭防火墙 service iptables start #开启 service iptables stop #关闭 grep 上下几行 grep -C 5 foo file #显示file文件中匹配foo字串那行以及上下5行 grep -B 5 foo file #显示foo及前5行 grep -A 5 foo file #显示foo及后5行 查看文件编码 file t...原创 2017-09-21 17:26:16 · 338 阅读 · 0 评论