Linux添加防火墙放行端口
在/etc/sysconfig/iptables文件里面添加
eg:-A INPUT -p tcp -m state --state NEW -m tcp --dport 8080 -j ACCEPT
/etc/rc.d/init.d/iptables restart | /etc/init.d/iptables reload
#find
find /data/nginx/conf/conf.d/ -type f|xargs grep -i "192.168.xx.xx"
#grep
grep -r "test" /data/reports
cat daily.log | grep "context"
cat test.log | tail -n 5
cat test.log | head -n 5
#ln 软链
ln -s 【目标目录】 【软链接地址】
mv chengang chengang_bak
rm -rf webapps
ln -s /data/www/项目包 /data/www/webapps
网友评论