2024-10-24 09:37:53 +08:00
|
|
|
|
# OpenEuler 24.03 (LTS) 安装部署
|
|
|
|
|
|
2024-11-01 14:29:57 +08:00
|
|
|
|
## 操作系统安装
|
|
|
|
|
|
|
|
|
|
OpenEuler的安装和Centos差不多,这里不详细说明了,就把几个建议步骤说下,这样可以减少后期手动配置的麻烦。
|
|
|
|
|
|
2024-12-10 08:57:34 +08:00
|
|
|
|

|
2024-11-01 14:29:57 +08:00
|
|
|
|
|
|
|
|
|
> 语言这里选 `English`。
|
|
|
|
|
|
2024-12-10 08:57:34 +08:00
|
|
|
|

|
2024-11-01 14:29:57 +08:00
|
|
|
|
|
|
|
|
|
> `Keyboard` 不修改。
|
|
|
|
|
|
|
|
|
|
> `Installation Source` 不修改。
|
|
|
|
|
|
2024-11-01 14:32:05 +08:00
|
|
|
|
> `Installation Destination` 这里要配置磁盘分区。(不是一定要这样配置,会的随意配置)
|
2024-11-01 14:29:57 +08:00
|
|
|
|
|
2024-12-10 08:57:34 +08:00
|
|
|
|

|
2024-11-01 14:29:57 +08:00
|
|
|
|
|
2024-12-10 08:57:34 +08:00
|
|
|
|

|
2024-11-01 14:29:57 +08:00
|
|
|
|
|
2024-12-10 08:57:34 +08:00
|
|
|
|

|
2024-11-01 14:29:57 +08:00
|
|
|
|
|
|
|
|
|
点左下角的`+`,新建分区
|
|
|
|
|
|
2024-12-10 08:57:34 +08:00
|
|
|
|

|
2024-11-01 14:29:57 +08:00
|
|
|
|
|
|
|
|
|
`Mount Point`填: /das, 大小不用填,默认会使用剩余所有空间。
|
|
|
|
|
|
2024-12-10 08:57:34 +08:00
|
|
|
|

|
2024-11-01 14:29:57 +08:00
|
|
|
|
|
|
|
|
|
点击 `Done`完成分区配置。
|
|
|
|
|
|
2024-11-01 17:03:32 +08:00
|
|
|
|
> `Language Support` 这个需要勾上中文。
|
2024-11-01 14:29:57 +08:00
|
|
|
|
|
2024-12-10 08:57:34 +08:00
|
|
|
|

|
2024-11-01 14:29:57 +08:00
|
|
|
|
|
|
|
|
|
> `Software Selection` 这里基础环境选择"Server", 右侧再勾上一个开发工具包,以防后续内网环境下编译安装程序时需要。
|
|
|
|
|
|
2024-12-10 08:57:34 +08:00
|
|
|
|

|
2024-11-01 14:29:57 +08:00
|
|
|
|
|
|
|
|
|
> `Network & Hostname` 根据实际情况配置。
|
|
|
|
|
|
|
|
|
|
> `Time & Date` 时区不用修改了。
|
|
|
|
|
|
|
|
|
|
下面的root账号密码设置下,普通用户就不用创建了。
|
|
|
|
|
|
|
|
|
|
## 系统配置
|
|
|
|
|
|
2024-11-01 17:03:32 +08:00
|
|
|
|
### 更新系统(不能访问外网请忽略)
|
2024-12-09 15:46:58 +08:00
|
|
|
|
首先切换系统yum源为国内地址,加快更新速度。
|
|
|
|
|
```bash
|
|
|
|
|
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
|
|
|
|
|
```
|
|
|
|
|
创建索引缓存
|
|
|
|
|
```bash
|
|
|
|
|
yum makecache
|
|
|
|
|
```
|
|
|
|
|
执行更新操作
|
2024-11-01 17:03:32 +08:00
|
|
|
|
```bash
|
|
|
|
|
yum update -y
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 关闭Selinux
|
|
|
|
|
除非你明确知道它是什么怎么配置,否则不建议开启。
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
setenforce 0
|
|
|
|
|
```
|
|
|
|
|
上面的命令是临时关闭,仅在当前Session下有效,使用它就不用重启了。
|
|
|
|
|
永久关闭的命令:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
|
|
|
|
|
```
|
|
|
|
|
|
2024-12-10 08:57:34 +08:00
|
|
|
|
### 关闭防火墙(根据情况)
|
2024-11-01 17:03:32 +08:00
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
systemctl stop firewalld
|
|
|
|
|
systemctl disable firewalld
|
2024-12-09 16:46:03 +08:00
|
|
|
|
```
|
|
|
|
|
|