centos8/9 配置笔记
1. centos8/9 配置wifi,一条命令搞定
nmcli dev wifi connect WIFI名称 password WIFI密码
2. centos8/9 配置静态IP
[root@localhost ~]# cat /etc/NetworkManager/system-connections/enp3s0.nmconnection
[connection]
id=enp3s0
uuid=f8ef9017-b1d3-3bc2-8aaa-bbdf1d5c99ff
type=ethernet
autoconnect-priority=-999
interface-name=enp3s0
timestamp=1703166009
[ethernet]
[ipv4]
address=192.168.137.7/24
method=manual
[ipv6]
addr-gen-mode=eui64
method=auto
[proxy]
3. centos8/9 配置VNC
参考链接
https://blog.csdn.net/luxiaohui520/article/details/122193642
4. centos8/9 配置screen
dnf install epel-release -y
然后再安装screen:
dnf install screen-y
5. centos8/9 配置zabbix-agent2
https://www.zabbix.com/download?zabbix=6.4&os_distribution=centos&os_version=8&components=agent_2&db=&ws=
6. centos8/9 配置squid
dnf install -y squid
systemctl start squid
客户端使用
# vi /etc/profile
# export http_proxy=http://ip:port
# export https_proxy=http://ip:port
6. centos8/9 配置rc.local
cd /etc/systemd/system/
vi rc-local.service
[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local
[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
[Install]
WantedBy=multi-user.target
touch /etc/rc.local
chmod +x /etc/rc.local
systemctl enable rc-local
systemctl start rc-local
systemctl status rc-local
vi /etc/rc.local
/usr/bin/sleep 10
7. centos8/9 配置网络启动
dnf install wol
wol mac地址