linux 操作笔记

时间:2021-10-13 09:20:59

1、设置防火墙,允许用户使用http访问本机

[root@localhost geoserver]# systemctl enable httpd
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
[root@localhost geoserver]# systemctl start httpd
[root@localhost geoserver]# firewall-cmd --permanent --add-service=http
success
[root@localhost geoserver]# firewall-cmd --permanent --add-service=https
success
[root@localhost geoserver]# firewall-cmd --reload
success
[root@localhost geoserver]#