ubuntu 20.04 server安装

编程入门 行业动态 更新时间:2024-10-24 22:18:02

<a href=https://www.elefans.com/category/jswz/34/1771209.html style=ubuntu 20.04 server安装"/>

ubuntu 20.04 server安装

ubuntu 20.04 server安装

ubuntu-20.04.6-live-server-amd64.iso
安装

安装ubuntu20.04 TLS系统后,开机卡在“A start job is running for wait for network to be Configured”等待连接两分多钟。

cd /etc/systemd/system/network-online.target.wants/

在[Service]下添加 TimeoutStartSec=2sec,(设置超时时间为2秒)如下:
sudo vi systemd-networkd-wait-online.service

[Service]
Type=oneshot
ExecStart=/lib/systemd/systemd-networkd-wait-online
RemainAfterExit=yes
TimeoutStartSec=2sec

sudo reboot

1、禁用cloud-init
这是最简单最安全的方法,在 /etc/cloud 目录下创建 cloud-init.disabled 文件重启后生效。删除该文件就可以恢复

# 创建cloud-init.disabled文件
sudo touch /etc/cloud/cloud-init.disabled# 重启
reboot

1

至此,已经成功扩容

注意:Ubuntu系统安装的时候,需取消Set up this disk as an LVM group选项,否则此方法无效

server版:

grub

最近要配置新的引导系统盘,所以需要用到自己电脑中ubuntu20.04系统的开机引导grub,但是默认开机后直接就进入系统了,根本无法进入引导菜单编辑界面,需要自己修改配置文件。
/etc/default/grub
打开后我们首先把值为hidden这行使用井号给注释掉。
然后分别把 TIMEOUT设置为 30,还有CMDLINE设置为text,然后记得保存。
修改完成后我们 sudo update-grub重新更新grub配置

最后我们重新启动ubuntu20.04系统,开机后就可以进入引导菜单选择界面了。

系统备份

更多推荐

ubuntu 20.04 server安装

本文发布于:2023-11-16 09:06:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1614858.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:ubuntu   server

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!