1、关闭firewall:

systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
firewall-cmd --state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running)

 

2.关闭图形界面

1,命令模式
systemctl set-default multi-user.target

2,图形模式
systemctl set-default graphical.target

 3.更改主机名

hostnamectl set-hostname xxx  

 

设置时间

[root@localhost ~]# timedatectl set-local-rtc 1
[root@localhost ~]# timedatectl set-timezone Asia/Shanghai
[root@localhost ~]# cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

服务名所在目录

#/usr/lib/systemd/system

#ls

iprutils.target                         -.slice                                        wpa_supplicant.service
iptables.service                        slices.target                                  YDService.service
kdump.service                           smartcard.target                               zabbix-agent.service

 

相关文章:

  • 2021-06-25
  • 2021-05-21
  • 2022-01-18
  • 2022-12-23
  • 2019-03-11
  • 2021-11-08
  • 2022-12-23
猜你喜欢
  • 2021-05-27
  • 2021-12-14
  • 2019-03-10
  • 2021-07-14
  • 2021-08-13
  • 2021-09-12
  • 2021-05-14
相关资源
相似解决方案