Rocky 9 安裝基本設定

下載:

https://rockylinux.org/zh-TW/download

https://download.rockylinux.org/pub/rocky/9/isos/x86_64/Rocky-9.4-x86_64-minimal.iso

修改 root 登錄 ssh 權限

vi /etc/ssh/sshd_config

在配置文件中找到 PermitRootLogin 這行,修改它的值為 yes:

PermitRootLogin yes

重啟 ssh

systemctl restart ssh

調整時區

sudo timedatectl set-timezone Asia/Taipei

升級

yum update -y

安裝 wget

yum install wget

關閉防火牆

使用 systemctl 命令停止 firewalld 服务:

sudo systemctl stop firewalld

禁用 firewalld 服务,以防止系统重新启动后自动启动:

sudo systemctl disable firewalld

正文完
 0