1. 首页 > 软件安装教程 > 正文

Linux安装-麒麟Kylin系统安装配置-麒麟Kylin V10操作系统详细安装过程

1. 硬件环境要求

在安装麒麟Kylin V10之前,需要确保硬件环境满足最低要求。更多学习教程www.fgedu.net.cn

生产环境建议:最小内存4GB(测试环境),生产环境建议8GB以上。SWAP分区:内存8GB以下时,SWAP等于内存大小;内存8-16GB时,SWAP为8GB;内存16GB以上时,SWAP为16GB。临时文件系统/dev/shm至少为2GB。

2. VMware Workstation配置

本文以VMware Workstation 17 Pro为例,创建虚拟机用于安装麒麟Kylin V10。

# 虚拟机配置参数
– 虚拟机名称:KylinV10
– 操作系统:Linux 64位
– 内存:8GB
– 处理器:2核心
– 网络:桥接模式
– 磁盘:50GB(SCSI)
– CD/DVD:Kylin-V10-SP1-x86_64.iso

3. 麒麟Kylin V10安装过程

启动虚拟机,开始麒麟Kylin V10的安装过程。

3.1 启动安装

1. 选择”安装麒麟操作系统”选项并按Enter键。

2. 选择安装语言为”中文(简体)”,点击”下一步”。

3.2 分区配置

1. 选择”手动分区”,点击”下一步”。学习交流加群风哥微信: itpux-com

# 分区方案
– /boot:1GB,Ext4
– /:30GB,Ext4
– /var:10GB,Ext4
– /home:5GB,Ext4
– swap:4GB

3.3 网络配置

1. 配置网络接口,设置静态IP地址。

# 网络配置
– IP地址:192.168.1.51
– 子网掩码:255.255.255.0
– 网关:192.168.1.1
– DNS:8.8.8.8
– 主机名:fgedu.net.cn

3.4 用户设置

1. 设置用户名、密码和计算机名,点击”下一步”。

3.5 开始安装

点击”开始安装”按钮,等待安装完成。

3.6 完成安装

安装完成后,点击”重启”按钮。

风哥提示:安装过程中会自动格式化磁盘并安装系统,确保数据已备份。

4. 安装后配置

系统安装完成后,需要进行一些基本配置。

4.1 系统更新

# 更新系统
# apt update
Hit:1 http://archive.kylinos.cn/kylin/KYLIN-ALL 10.1 InRelease
Hit:2 http://archive.kylinos.cn/kylin/KYLIN-ALL 10.1-updates InRelease
Hit:3 http://archive.kylinos.cn/kylin/KYLIN-ALL 10.1-security InRelease
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
All packages are up to date.

# apt upgrade
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Calculating upgrade… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

4.2 基本工具安装

# 安装常用工具
# apt install -y vim net-tools telnet wget curl rsync tar gzip bzip2 zip unzip
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following additional packages will be installed:
libcurl4 libgpm2 libksba8 libnpth0 libzip4
Suggested packages:
gpm
The following NEW packages will be installed:
bzip2 curl gzip libcurl4 libgpm2 libksba8 libnpth0 libzip4 net-tools rsync telnet unzip wget zip
0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,123 kB of archives.
After this operation, 11.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y

5. 网络配置

详细配置网络设置,确保系统网络连接正常。学习交流加群风哥QQ113257174

# 查看网络接口
# ip addr
1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth0: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:12:34:56 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.51/24 brd 192.168.1.255 scope global eth0
valid_lft forever preferred_lft forever

# 测试网络连接
# ping -c 4 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=118 time=12.3 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=118 time=11.9 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=118 time=12.1 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=118 time=11.8 ms

— 8.8.8.8 ping statistics —
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 11.811/12.047/12.333/0.214 ms

6. 存储配置

配置存储系统,包括磁盘分区和文件系统优化。

# 查看磁盘使用情况
# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 3.9G 9.1M 3.9G 1% /run
/dev/sda2 30G 3.2G 26G 11% /
/dev/sda1 1014M 132M 883M 13% /boot
/dev/sda3 10G 206M 9.3G 3% /var
/dev/sda4 5.0G 33M 4.7G 1% /home
/dev/sda5 4.0G 33M 3.8G 1% [SWAP]

# 查看磁盘I/O性能
# iostat -x 1 3
Linux 4.19.90-24.4.v2101.ky10.x86_64 (fgedu.net.cn) 03/31/2026 _x86_64_ (2 CPU)

avg-cpu: %user %nice %system %iowait %steal %idle
0.00 0.00 0.50 0.00 0.00 99.50

device r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

7. 软件仓库配置

配置麒麟Kylin V10的软件仓库,确保可以安装和更新软件包。

# 查看当前仓库配置
# cat /etc/apt/sources.list
deb http://archive.kylinos.cn/kylin/KYLIN-ALL 10.1 main restricted universe multiverse
deb http://archive.kylinos.cn/kylin/KYLIN-ALL 10.1-updates main restricted universe multiverse
deb http://archive.kylinos.cn/kylin/KYLIN-ALL 10.1-security main restricted universe multiverse

# 刷新仓库
# apt update
Hit:1 http://archive.kylinos.cn/kylin/KYLIN-ALL 10.1 InRelease
Hit:2 http://archive.kylinos.cn/kylin/KYLIN-ALL 10.1-updates InRelease
Hit:3 http://archive.kylinos.cn/kylin/KYLIN-ALL 10.1-security InRelease
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
All packages are up to date.

8. 安全配置

配置系统安全,包括防火墙和SSH设置。更多学习教程公众号风哥教程itpux_com

# 安装并配置防火墙
# apt install -y ufw
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following NEW packages will be installed:
ufw
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 144 kB of archives.
After this operation, 564 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y

# 启用防火墙
# ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
Firewall is active and enabled on system startup

# 开放SSH端口
# ufw allow ssh
Rules updated
Rules updated (v6)

# 查看防火墙状态
# ufw status
Status: active

To Action From
— —— —-
22/tcp ALLOW Anywhere
22/tcp (v6) ALLOW Anywhere (v6)

生产环境建议:生产环境中应启用防火墙并只开放必要的端口,定期更新系统以获取安全补丁。

9. 性能调优

优化系统性能,包括内核参数和内存管理。

# 编辑sysctl.conf文件
# vi /etc/sysctl.conf

# 添加以下内核参数
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
vm.swappiness = 10
vm.dirty_background_ratio = 5
vm.dirty_ratio = 10

# 使内核参数生效
# sysctl -p
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
vm.swappiness = 10
vm.dirty_background_ratio = 5
vm.dirty_ratio = 10

9.1 内存管理优化

# 检查内存使用情况
# free -h
total used free shared buff/cache available
Mem: 7.8G 1.2G 5.6G 9.8M 980M 6.3G
Swap: 4.0G 0B 4.0G

# 配置大内存页
# vi /etc/sysctl.conf
vm.nr_hugepages = 1024

# 使配置生效
# sysctl -p

# 验证大内存页配置
# grep HugePages /proc/meminfo
HugePages_Total: 1024
HugePages_Free: 1024
HugePages_Rsvd: 0
HugePages_Surp: 0

10. 故障排除

常见问题及解决方案。

10.1 网络连接问题

# 检查网络接口状态
# ip link show eth0
2: eth0: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:0c:29:12:34:56 brd ff:ff:ff:ff:ff:ff

# 检查网络服务状态
# systemctl status networking
● networking.service – Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
Active: active (exited) since Fri 2026-03-31 10:00:00 CST; 1h ago
Docs: man:interfaces(5)
Process: 1234 ExecStart=/sbin/ifup -a –read-environment (code=exited, status=0/SUCCESS)
Main PID: 1234 (code=exited, status=0/SUCCESS)
Tasks: 0
Memory: 1.1M
CPU: 33ms

10.2 系统启动问题

# 查看系统启动日志
# journalctl -b | grep error

# 检查文件系统
# fsck -f /dev/sda1
fsck from util-linux 2.32.1
e2fsck 1.45.6 (20-Mar-2020)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/boot: 223/262144 files (0.0% non-contiguous), 29451/1048576 blocks

风哥提示:系统出现问题时,应首先查看日志文件,定位问题原因后再进行修复。

from:www.itpux.com

本文由风哥教程整理发布,仅用于学习测试使用,转载注明出处:http://www.fgedu.net.cn/10327.html

联系我们

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

微信号:itpux-com

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