-
服務
- 開機
systemctl enable sth.service
chkconfig sth on
- 重啟
systemctl restart sth.service
service sth restart
- 開機
-
防火牆
firewall-cmd --zone=public --permanent --list-all
firewall-cmd --zone=public --permanent --add-service=sth
firewall-cmd --zone=public --permanent --add-port=0/tcp
firewall-cmd --zone=public --permanent --add-port=0/udp
firewall-cmd --reload
yum install samba-client samba-common cifs-utils
nano /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