map/docs/deploy/linux.md
2024-12-10 14:33:09 +08:00

88 lines
2.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# OpenEuler 24.03 (LTS) 安装部署
## 操作系统安装
OpenEuler的安装和Centos差不多这里不详细说明了就把几个建议步骤说下这样可以减少后期手动配置的麻烦。
![alt text](asserts/image-welcome.png)
> 语言这里选 `English`。
![alt text](asserts/image-mainmenu.png)
> `Keyboard` 不修改。
> `Installation Source` 不修改。
> `Installation Destination` 这里要配置磁盘分区。(不是一定要这样配置,会的随意配置)
![alt text](asserts/image-diskmgr.png)
![alt text](asserts/image-partitions.png)
![alt text](asserts/image-partitions01.png)
点左下角的`+`,新建分区
![alt text](asserts/image-partitions02.png)
`Mount Point`填: /das, 大小不用填,默认会使用剩余所有空间。
![alt text](asserts/image-partitions03.png)
点击 `Done`完成分区配置。
> `Language Support` 这个需要勾上中文。
![alt text](asserts/image-language.png)
> `Software Selection` 这里基础环境选择"Server", 右侧再勾上一个开发工具包,以防后续内网环境下编译安装程序时需要。
![alt text](asserts/image-software.png)
> `Network & Hostname` 根据实际情况配置。
> `Time & Date` 时区不用修改了。
下面的root账号密码设置下普通用户就不用创建了。
## 系统配置
### 更新系统(不能访问外网请忽略)
首先切换系统yum源为国内地址加快更新速度。
```bash
sudo 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
```
执行更新操作
```bash
yum update -y
```
### 关闭Selinux
除非你明确知道它是什么怎么配置,否则不建议开启。
```bash
setenforce 0
```
上面的命令是临时关闭仅在当前Session下有效使用它就不用重启了。
永久关闭的命令:
```bash
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
```
### 关闭防火墙(根据情况)
```bash
systemctl stop firewalld
systemctl disable firewalld
```