@cdmonkey
2018-11-29T08:03:18.000000Z
字数 3961
阅读 1319
操作系统
http://hequan.blog.51cto.com/5701886/1789146
http://www.centoscn.com/CentOS/config/2014/1031/4039.html
使用hostnamectl的命令行工具,它允许你查看及修改同主机名相关的配置。
hostnamectl set-hostname --static PBSZBX01
http://www.centoscn.com/CentOS/config/2014/1031/4034.html
http://www.linuxdown.net/install/faq/20160309_how_linux_4976.html
http://www.centoscn.com/CentOS/config/2015/0507/5374.html
[root@zabbix-server ~]# systemctl -t serviceUNIT LOAD ACTIVE SUB DESCRIPTIONauditd.service loaded active running Security Auditing Servicecrond.service loaded active running Command Schedulerdbus.service loaded active running D-Bus System Message Busgetty@tty1.service loaded active running Getty on tty1httpd.service loaded active running The Apache HTTP Serverirqbalance.service loaded active running irqbalance daemonkmod-static-nodes.service loaded active exited Create list of required static device nodes for the current kernellvm2-lvmetad.service loaded active running LVM2 metadata daemonlvm2-monitor.service loaded active exited Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress pollinglvm2-pvscan@8:2.service loaded active exited LVM2 PV scan on device 8:2network.service loaded active exited LSB: Bring up/down networkingNetworkManager.service loaded active running Network Manageronealert.service loaded active running LSB: OneAlert local agentpolkit.service loaded active running Authorization Managerrhel-autorelabel-mark.service loaded active exited Mark the need to relabel after rebootrhel-dmesg.service loaded active exited Dump dmesg to /var/log/dmesgrhel-import-state.service loaded active exited Import network configuration from initramfsrhel-readonly.service loaded active exited Configure read-only root supportrsyslog.service loaded active running System Logging Servicesendmail.service loaded active running Sendmail Mail Transport Agentsm-client.service loaded active running Sendmail Mail Transport Clientsshd.service loaded active running OpenSSH server daemonsystemd-journal-flush.service loaded active exited Flush Journal to Persistent Storagesystemd-journald.service loaded active running Journal Servicesystemd-logind.service loaded active running Login Servicesystemd-random-seed.service loaded active exited Load/Save Random Seedsystemd-remount-fs.service loaded active exited Remount Root and Kernel File Systemssystemd-sysctl.service loaded active exited Apply Kernel Variablessystemd-tmpfiles-setup-dev.service loaded active exited Create Static Device Nodes in /devsystemd-tmpfiles-setup.service loaded active exited Create Volatile Files and Directoriessystemd-udev-trigger.service loaded active exited udev Coldplug all Devicessystemd-udevd.service loaded active running udev Kernel Device Managersystemd-update-utmp.service loaded active exited Update UTMP about System Boot/Shutdownsystemd-user-sessions.service loaded active exited Permit User Sessionssystemd-vconsole-setup.service loaded active exited Setup Virtual Consoletuned.service loaded active running Dynamic System Tuning Daemonvmware-tools.service loaded active running SYSV: Manages the services needed to run VMware softwarewpa_supplicant.service loaded active running WPA Supplicant daemonzabbix-agent.service loaded active running Zabbix Agentzabbix-server.service loaded active running Zabbix ServerLOAD = Reflects whether the unit definition was properly loaded.ACTIVE = The high-level unit activation state, i.e. generalization of SUB.SUB = The low-level unit activation state, values depend on unit type.40 loaded units listed. Pass --all to see loaded but inactive units, too.To show all installed unit files use 'systemctl list-unit-files'.
[root@PBSZBX01 ~]# systemctl disable firewalld.serviceRemoved symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.# Ckeck[root@PBSZBX01 ~]# firewall-cmd --statenot running
这只是其中一种办法,简单可行。
[root@hidocker ~]# vim /etc/sysctl.conf# 增加下面两行:net.ipv6.conf.all.disable_ipv6 =1net.ipv6.conf.default.disable_ipv6 =1# 保存并退出文件,并执行下面的命令来使设置生效:sysctl -p
http://www.centoscn.com/CentOS/config/2015/0618/5681.html
https://linux.cn/article-5335-1.html
http://blog.csdn.net/wh211212/article/details/53063599?fps=1&locationNum=2