map/docs/deploy/linux.md
2024-12-09 15:46:58 +08:00

2.1 KiB
Raw Blame History

OpenEuler 24.03 (LTS) 安装部署

操作系统安装

OpenEuler的安装和Centos差不多这里不详细说明了就把几个建议步骤说下这样可以减少后期手动配置的麻烦。

alt text

语言这里选 English

alt text

Keyboard 不修改。

Installation Source 不修改。

Installation Destination 这里要配置磁盘分区。(不是一定要这样配置,会的随意配置)

alt text

alt text

alt text

点左下角的+,新建分区

alt text

Mount Point填: /das, 大小不用填,默认会使用剩余所有空间。

alt text

点击 Done完成分区配置。

Language Support 这个需要勾上中文。

alt text

Software Selection 这里基础环境选择"Server", 右侧再勾上一个开发工具包,以防后续内网环境下编译安装程序时需要。

alt text

Network & Hostname 根据实际情况配置。

Time & Date 时区不用修改了。

下面的root账号密码设置下普通用户就不用创建了。

系统配置

更新系统(不能访问外网请忽略)

首先切换系统yum源为国内地址加快更新速度。

sed -e 's|http://repo.openeuler.org/|https://mirrors.ustc.edu.cn/openeuler/|g' \          -e 's|https://mirrors.openeuler.org/|https://mirrors.ustc.edu.cn/openeuler/|g' \          -i.bak \          /etc/yum.repos.d/openEuler.repo

创建索引缓存

yum makecache

执行更新操作

yum update -y

关闭Selinux

除非你明确知道它是什么怎么配置,否则不建议开启。

setenforce 0

上面的命令是临时关闭仅在当前Session下有效使用它就不用重启了。 永久关闭的命令:

sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config

关闭防火墙

systemctl stop firewalld
systemctl disable firewalld