摘要: 把jexus做成系统服务,就像windows服务一样,可以设置开机启动就可以了。 第一、进入目录 /lib/systemd/system/ 第二、新建文件 vi jexus.service 文件内容 文件内容说明 阅读全文
posted @ 2019-07-07 18:43 道# 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 命令:firewall-cmd --zone=public --add-port=80/tcp --permanent 开放80 --zone #作用域 --add-port=80/tcp #添加端口,格式为:端口/通讯协议 --permanent #永久生效,没有此参数重启后失效 查询是否开启 : 阅读全文
posted @ 2019-07-07 18:08 道# 阅读(4806) 评论(0) 推荐(1) 编辑
摘要: /sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT #开启80端口 /sbin/iptables -I INPUT -p tcp --dport 22 -j ACCEPT #开启22端口 /etc/rc.d/init.d/iptables save 阅读全文
posted @ 2019-07-07 17:16 道# 阅读(2991) 评论(0) 推荐(0) 编辑