![](https://i-blog.csdnimg.cn/blog_migrate/5c45293cc89f2064fd655f9976420ab2.png)
启动freeswitch 的时候出现这个问题,百度说是8021这个端口被占用,然后用netstat -npl
这个命令来查看所有端口的是用情况,但是查看端口太麻烦了,再次百度,网上说重启服务器就好了。已重启,果然好了
然而还是注册不上,应该是防火墙的问题,果断关闭防火墙
![](https://i-blog.csdnimg.cn/blog_migrate/6e3b815d60d82a2b541942689decfaa7.png)
centos 7 用这个关闭防火墙。 firewall-cmd --state 查看防火墙的状态,如果是not running就是关闭了防火墙的,然后再次注册,果然是OK的
CentOS7使用firewalld打开关闭防火墙与端口
1、firewalld的基本使用
启动: systemctl start firewalld
关闭: systemctl stop firewalld
查看状态: systemctl status firewalld
开机禁用 : systemctl disable firewalld
开机启用 : systemctl enable firewalld
2.systemctl是CentOS7的服务管理工具中主要的工具,它融合之前service和chkconfig的功能于一体。
启动一个服务:systemctl start f