@@ -290,30 +290,30 @@ kill 3268
290290
291291``` sh
292292# 1.启动 nfs 服务
293- systemctl start nfs-server.service
293+ systemctl start nfs-server.service
294294
295295# 2.设置开机自启动
296- systemctl enable nfs-server.service
296+ systemctl enable nfs-server.service
297297
298298# 3.停止开机自启动
299- systemctl disable nfs-server.service
299+ systemctl disable nfs-server.service
300300
301301# 4.查看服务当前状态
302- systemctl status nfs-server.service
302+ systemctl status nfs-server.service
303303
304304# 5.重新启动某服务
305- systemctl restart nfs-server.service
305+ systemctl restart nfs-server.service
306306
307307# 6.查看所有已启动的服务
308- systemctl list -units --type=service
308+ systemctl list -units --type=service
309309
310310# 7. 开启防火墙 22 端口
311- iptables -I INPUT -p tcp --dport 22 -j accept
311+ iptables -I INPUT -p tcp --dport 22 -j accept
312312
313313# 8. 彻底关闭防火墙
314- sudo systemctl status firewalld.service
315- sudo systemctl stop firewalld.service
316- sudo systemctl disable firewalld.service
314+ sudo systemctl status firewalld.service
315+ sudo systemctl stop firewalld.service
316+ sudo systemctl disable firewalld.service
317317```
318318
319319### service
@@ -366,16 +366,16 @@ service network restart
366366# 每晚的 21:30 重启 smb
36736730 21 * * * /etc/init.d/smb restart
368368
369- # 每月 1、10、22 日的 4 : 45 重启 smb
369+ # 每月 1、10、22 日的 4 : 45 重启 smb
37037045 4 1,10,22 * * /etc/init.d/smb restart
371371
372372# 每周六、周日的 1:10 重启 smb
37337310 1 * * 6,0 /etc/init.d/smb restart
374374
375- # 每天 18 : 00 至 23 : 00 之间每隔 30 分钟重启 smb
375+ # 每天 18 : 00 至 23 : 00 之间每隔 30 分钟重启 smb
3763760,30 18-23 * * * /etc/init.d/smb restart
377377
378- # 每星期六的晚上 11:00 pm 重启 smb
378+ # 每星期六的晚上 11:00 pm 重启 smb
3793790 23 * * 6 /etc/init.d/smb restart
380380
381381# 每一小时重启 smb
0 commit comments