> For the complete documentation index, see [llms.txt](https://docs.chjina.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chjina.com/it-zhi-shi-ku/xi-tong-pei-zhi-he-you-hua/linux/ubuntu/ubuntu-24.04-server-an-zhuang.md).

# Ubuntu 24.04 server 安装

### 1.开机进入引导界面后，会有安装服务和测试内存两个选择，选择第一个进行安装。

![img](https://pic.chjina.com/2024/08/19/476eb5e6473576881f4ebca0d92101ef.jpeg)

### 2.这里的语言选择的是安装过程中的语言，默认使用英文就好。

![img](https://pic.chjina.com/2024/08/19/98fdb28019f498eca58add6810fd01b2.jpg)

### 3.配置键盘布局，默认即可。

![](https://pic.chjina.com/2024/08/19/7d9e7ac0d7c5be6d338492bdc84200b8.jpg)

### 4.安装类型这里我们一般都会选择第一个Ubuntu server

![img](https://pic.chjina.com/2024/08/19/e52c86374fec2c10468c31dc89ec4659.jpg)

### 5.网卡设置，一般服务器都是配置固定IP，再进行后续安装。

#### 5.1选择ipv4。

![img](https://pic.chjina.com/2024/08/19/0321323f4339ad46dacb07f9998d1c51.jpg)

#### 5.2进入ipv4配置界面

![img](https://pic.chjina.com/2024/08/19/aacdb6a7e9440d063f60de92e1517f9e.jpg)

#### 5.3选择静态设置

![img](https://pic.chjina.com/2024/08/19/95754bb655a803cdc5606cccfebb420a.jpg)

#### 5.4配置地址

```
Subnet：子网段 192.168.1.0/24
Address：IP地址 192.168.1.2
Gateway：网关  192.168.1.1
Name servers：域名服务器，多个可以使用逗号隔开 223.5.5.5
Search domains：域（非必填）
```

![img](https://pic.chjina.com/2024/08/19/0985d351f96bf18ea8cd56d814d0703a.jpg)

### 6确认后点击下一步

![img](https://pic.chjina.com/2024/08/19/0b35c139b2a698f079e99d82026cafb8.jpg)

### 7.配置代理，默认为空即可

![img](https://pic.chjina.com/2024/08/19/40e7dcf03fd73daffd9ac90db6b2080e.jpg)

### 8.配置安装源，如果服务器无法连接互联网的默认即可，也可以配置国内的阿里云的镜像源。后期更新系统软件，会快些。当然安装完系统也可以自行配置。

```
https://mirrors.aliyun.com/ubuntu/
```

![img](https://pic.chjina.com/2024/08/19/14f42d9b66f26056759ff30156adc2b7.jpg)

#### 8.1我这里为因为无法连接互联网，提示无法访问安装源。点击确定

![img](https://pic.chjina.com/2024/08/19/18ceba2d06dff4935cf8b410d2be11c8.jpg)

### 9.存储配置，默认即可，如需要特殊配置，可以选择下面的自定义。

![img](https://pic.chjina.com/2024/08/19/8e7afa4430de2793219fc480c538b468.jpg)

### 10.默认自动分区，确定下一步

![img](https://pic.chjina.com/2024/08/19/2a8b9eb16935823ad813ca60976b6936.jpg)

#### 10.1提示需要格式化硬盘，确保硬盘数据都备份，点击done

![img](https://pic.chjina.com/2024/08/19/2617094a279e23b27fdf03313ecb0860.jpg)

### 11设置用户名密码，这里不能设置root用户，

![bdb0753dd28844b49a6c2f0339583b36](https://pic.chjina.com/2024/08/19/4be45a522b9ded7b229e92f5942a8b2c.png)

### 12.是否订阅pro计划，是Ubuntu推出的付费计划。跳过即可

![img](https://pic.chjina.com/2024/08/19/35f0ce90857ccf5a125512e20a17db49.jpg)

### 13.选择安装ssh server 后续可以使用ssh登录即可。

![img](https://pic.chjina.com/2024/08/19/f27596806fd35b438379ff319868509b.jpg)

### 14.正在安装系统

![img](https://pic.chjina.com/2024/08/19/eb2cde20475ff7d253e1ef7d3632918c.jpg)

### 15.安装完毕，选择重启系统

![img](https://pic.chjina.com/2024/08/19/2c75006fac53e51f54c6e92afd8e11ab.jpg)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.chjina.com/it-zhi-shi-ku/xi-tong-pei-zhi-he-you-hua/linux/ubuntu/ubuntu-24.04-server-an-zhuang.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
