● firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled) Active: inactive (dead) Docs: man:firewalld(1)
时间: 2024-01-28 15:18:39 浏览: 232
CentOS7打开关闭防火墙与端口
这个输出表明当前 firewalld 服务没有启动,因此需要使用以下命令启动 firewalld 服务:
```
sudo systemctl start firewalld
```
启动后,你可以使用以下命令检查 firewalld 服务的状态:
```
sudo systemctl status firewalld
```
如果 firewalld 服务正在运行,则应该会看到类似于以下内容的输出:
```
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2021-06-18 16:52:06 UTC; 2s ago
Docs: man:firewalld(1)
Main PID: 12345 (firewalld)
Tasks: 2 (limit: 1145)
Memory: 11.3M
CGroup: /system.slice/firewalld.service
└─12345 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
Jun 18 16:52:06 server systemd[1]: Starting firewalld - dynamic firewall daemon...
Jun 18 16:52:06 server systemd[1]: Started firewalld - dynamic firewall daemon.
```
现在,你可以按照之前给出的命令开放 GitLab 端口。
阅读全文