1. 首页 > 主机杂谈 > 正文

RAKsmart安装HestiaCP面板系列教程准备篇:RAKsmart服务器初始化与HestiaCP安装环境配置

针对RAKsmart服务器初始化及HestiaCP安装环境配置的详细教程,适用于Ubuntu/Debian和AlmaLinux系统,主机推荐小编为您整理发布RAKsmart安装HestiaCP面板系列教程准备篇:RAKsmart服务器初始化与HestiaCP安装环境配置 。

1. 登录RAKsmart服务器

bash
# 使用SSH密钥登录(推荐)
ssh -i ~/.ssh/your_private_key root@your_server_ip

# 使用密码登录
ssh root@your_server_ip

raksmart服务器活动推荐,点击下方图片一键领取。

2. 系统更新与升级

bash
# Ubuntu/Debian
apt update && apt upgrade -y && apt autoremove -y

# AlmaLinux/CentOS
yum update -y && yum autoremove -y

3. 设置主机名

bash
hostnamectl set-hostname your-hostname  # 替换为你的主机名
hostnamectl status  # 验证

4. 配置时区

bash
timedatectl set-timezone Asia/Shanghai  # 中国时区
timedatectl status  # 检查时间

5. 创建管理员用户(非root)

bash
# 创建用户(替换adminuser)
adduser adminuser

# 授予sudo权限
# Ubuntu/Debian
usermod -aG sudo adminuser

# AlmaLinux
usermod -aG wheel adminuser

# 切换到新用户
su - adminuser

6. RAKsmart网络配置检查

bash
# 查看IP配置
ip addr show

# 测试网络连通性
ping -c 4 google.com

# 检查IPv6(如有)
ping6 -c 4 ipv6.google.com

# 确认系统版本
cat /etc/os-release  # 推荐:Ubuntu 22.04/Debian 11/AlmaLinux 9

7. 防火墙配置

bash
# Ubuntu/Debian (UFW)
ufw allow OpenSSH    # 允许SSH(端口22)
ufw allow 8083/tcp   # HestiaCP默认端口
ufw enable

# AlmaLinux (Firewalld)
firewall-cmd --permanent --add-service=ssh
firewall-cmd --permanent --add-port=8083/tcp
firewall-cmd --reload

# 验证规则
ufw status          # Ubuntu/Debian
firewall-cmd --list-all  # AlmaLinux

8. 安装基础工具

bash
# Ubuntu/Debian
apt install -y curl wget nano vim git

# AlmaLinux
yum install -y curl wget nano vim git

关键注意事项

  1. RAKsmart专属要求

    • 登录管理面板查看分配的独立IPv4/IPv6地址

    • 推荐使用纯净系统镜像(无控制面板预装)

    • 如遇网络问题,在RAKsmart后台检查IP是否激活

  2. 安全加固建议

    bash
    # 禁用root SSH登录(操作后测试新用户!)
    sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config
    systemctl restart sshd
  3. HestiaCP预检

    • 确保端口8083未被占用:ss -tulpn | grep 8083

    • 域名DNS解析应指向服务器IP(安装时需绑定域名)

下一步:完成初始化后,可继续安装HestiaCP:

bash
curl -O https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh
bash hst-install.sh

主机推荐小编温馨提示:以上是小编为您整理发布的RAKsmart安装HestiaCP面板系列教程准备篇:RAKsmart服务器初始化与HestiaCP安装环境配置。更多知识分享可持续关注我们,raksmart机房更有多款云产品免费体验,助您开启全球上云之旅。

本文由网上采集发布,不代表我们立场,转载联系作者并注明出处:https://www.tuihost.com/11868.html

联系我们

在线咨询:点击这里给我发消息

微信号:17713241060

工作日:9:30-18:30,节假日休息