Skip to content

Commit

Permalink
Update centos7-docker-install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
cjy37 authored Sep 27, 2018
1 parent 3741864 commit 0dafb33
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions centos7-docker-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ EOF
firewall-cmd --permanent --add-port=9200/tcp
firewall-cmd --permanent --add-port=3306/tcp
firewall-cmd --permanent --add-port=3306/udp
#firewall-cmd --permanent --zone=public --add-service=docker-proxy
firewall-cmd --reload

# 安装Docker
Expand Down Expand Up @@ -366,6 +367,10 @@ STATD_PORT=662' >> /etc/sysconfig/nfs
firewall-cmd --permanent --add-port=892/udp
firewall-cmd --permanent --add-port=662/tcp
firewall-cmd --permanent --add-port=662/udp

firewall-cmd --permanent --zone=public --add-service=nfs
firewall-cmd --permanent --zone=public --add-service=mountd
firewall-cmd --permanent --zone=public --add-service=rpc-bind

firewall-cmd --reload

Expand Down

0 comments on commit 0dafb33

Please sign in to comment.