准备
硬件:Raspberry Pi 4B(4g或8g版本)
OS:centos7.9
cat /etc/redhat-release
CentOS Linux release 7.9.2009 (AltArch)
操作系统配置优化
ulimit调优
echo -ne "
* soft nofile 65535
* hard nofile 65535
" >>/etc/security/limits.conf
时区
/usr/bin/cp -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
中文环境
localectl set-locale LANG=zh_CN.utf8
关掉防火墙
systemctl stop firewalld
systemctl disable firewalld
关闭selinux
# 查看selinux状态
getenforce
# 临时关闭selinux
setenforce 0
# 永久关闭(需重启系统)
`sed -i 's/^ *SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config`
安装基础软件
安装telnet
yum install -y telnet
安装wget
yum install -y wget
`
评论区