安装Ubuntu服务器
一、下载Ubuntu-Server版 https://releases.ubuntu.com/ 二、安装流程 -- 1)阿里云源,配置 Mirror address 为: https://mirrors.aliyun.com/ubuntu -- 2)腾讯云源,配置 Mirror address 为: https://mirrors.cloud.tencent.com/ubuntu -- 3)华为云源,配置 Mirror address 为: https://repo.huaweicloud.com/ubuntu -- 4)清华大学源,配置 Mirror address 为: https://mirrors.tuna.tsinghua.edu.cn/ubuntu -- 5)中科大源,配置 Mirror address 为: https://mirrors.ustc.edu.cn/ubuntu 三、配置root并开启远程登录 $ sudo passwd root New password: # 此处输入 root 用户的登录密码(新设置密码) Retype new password: # 此处再次输入 root 用户的登录密码(确认与上面的密码输入一致) passwd: password updated successfully $ su Password: # 此处输入上面设置的 root 用户登录密码,回车即可登录至 root 用户 # exit # 退出登录 root 用户,回到普通用户登录态 $ su # 切换root用户 Password: # 输入root用户密码 $ vim /etc/ssh/sshd_config # 编辑sshd_config文件 ...... PermitRootLogin yes systemctl restart sshd 四、修改时区 timedatectl sudo ...