linux 操作笔记

来源:互联网 发布:网络教育的在职研究生 编辑:程序博客网 时间:2024/06/08 11:50
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]#

 

原创粉丝点击