Webdriver 的那些事
- 如何在 liunx 上使用webdriver?
- liunx 下如何安装 chrome 和 chromedriver?
- 如何解决错误:Chrome failed to start: exited abnormally?
- 为何在 liunx 下使用 webdriver 截图后,中文显示乱码,中文都是一个个小方框?
- 如何在 liunx 下安装中文字体?
Later equals never , just do now !
很多时候会登录一台陌生的服务器;
当需要调整环境的时候;
那真是起步啥都没有;装备全靠打;
两眼一抹黑到处找配置项;
还好我这记的有一份笔记;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
iptables # 查看端口状态 /etc/init.d/iptables status # 删除规则 num编号 iptables -D INPUT num编号 # 关闭端口 iptables -I INPUT -p tcp --dport 888 -j DROP # 开启端口 iptables -I INPUT -p tcp --dport 888 -j ACCEPT # 保存规则 /etc/init.d/iptables save # 重启防火墙,这个在修改配置文件后使用 /etc/sysconfig/iptables /etc/init.d/iptables restart |
1 2 3 4 5 6 7 8 9 10 11 |
# 关闭8888端口 --permanent 永久生效 firewall-cmd --zone=public --remove-port=8888/tcp --permanent # 开启8888端口 --permanent 永久生效 firewall-cmd --zone=public --add-port=8888/tcp --permanent # 需要更新防火墙规则后生效,无需断开连接(重启防火墙) firewall-cmd --reload # 查看指定区域所有打开的端口 firewall-cmd --zone=public --list-ports |
近期评论