网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
__init__.cpython-36.pyc 100% 346 0.3KB/s 00:00
api.cpython-36.pyc 100% 1505 1.5KB/s 00:00
sender.cpython-36.pyc 100% 3019 3.0KB/s 00:00
sender.py 100% 3039 3.0KB/s 00:00
api.py 100% 1508 1.5KB/s 00:00
db.py 100% 1926 1.9KB/s 00:00
由于预装系统是centos7.3,防火墙操作命令与linux还是有些区别
1、查看防火墙服务状态 systemctl status firewalld
[root@localhost download]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
2、查看防火墙运行状态(是否开启关闭)firewall-cmd –state
[root@localhost download]# firewall-cmd --state
running
3、关闭防火墙 service firewalld stop
[root@localhost download]# service firewalld stop
Redirecting to /bin/systemctl stop firewalld.service
4、开启防火墙service firewalld start
[root@localhost download]# service firewalld start
Redirecting to /bin/systemctl start firewalld.service
5、重启防火墙 service firewalld restart
[root@localhost download]# service firewalld restart
Redirecting to /bin/systemctl restart firewalld.service
6、查看开放端口 firewall-cmd –list-all
trusted (active)
target: ACCEPT
icmp-block-inversion: no
interfaces: eth0
sources:
services:
ports: 8888/tcp #这里开放了8888端口
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
7、开放指定端口[root@localhost download]# firewall-cmd –permanent –add-port=22/tcp 这里的22是要开放的端口
[root@localhost download]# firewall-cmd --permanent --add-port=22/tcp
success
最后的话
最近很多小伙伴找我要Linux学习资料,于是我翻箱倒柜,整理了一些优质资源,涵盖视频、电子书、PPT等共享给大家!
资料预览
给大家整理的视频资料:
给大家整理的电子书资料:
如果本文对你有帮助,欢迎点赞、收藏、转发给朋友,让我有持续创作的动力!
网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
56a57acb)**
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!