-
服務
- 開機
systemctl enable sth.servicechkconfig sth on
- 重啟
systemctl restart sth.serviceservice sth restart
- 開機
-
防火牆
firewall-cmd --zone=public --permanent --list-allfirewall-cmd --zone=public --permanent --add-service=sthfirewall-cmd --zone=public --permanent --add-port=0/tcpfirewall-cmd --zone=public --permanent --add-port=0/udpfirewall-cmd --reload
yum install samba-client samba-common cifs-utilsnano /etc/fstab
//domain/dir /target cifs defaults,dir_mode=0777,file_mode=0777,username=username,password=password 0 0
//domain/dir /target cifs defaults,dir_mode=0777,file_mode=0777,credentials=/root/credentials.txt 0 0
# 特殊用法
context=system_u:object_r:httpd_sys_rw_content_t:s0