最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Ubuntu?Server?22.04.5?入門篇:詳盡安裝部署指南

 更新時(shí)間:2025年03月05日 17:57:27   作者:Superman超哥  
這篇文章主要介紹了Ubuntu?Server?22.04.5?入門篇:詳盡安裝部署指南,需要的朋友可以參考下

Ubuntu Server 22.04.5 從零到一:詳盡安裝部署指南

一、部署環(huán)境

名稱軟件版本號(hào)
操作系統(tǒng)Ubuntu Server22.04.5

二、安裝系統(tǒng)

2.1 安裝

2.1.1 選擇安裝方式

安裝方式,選第一條。

image-20241114170752862

2.1.2 選擇語言

建議英語,報(bào)錯(cuò)時(shí)比較好百度,中文版報(bào)錯(cuò)不容易搜索。

image-20241114171153757

2.1.3 選擇不更新

image-20241114171510070

2.1.4 選擇鍵盤標(biāo)準(zhǔn)

默認(rèn)即可。

image-20241114173340237

2.1.5 選擇安裝版本

選擇安裝版本為標(biāo)準(zhǔn)server,鍵盤方向鍵控制光標(biāo),空格鍵選中。

image-20241114173453498

2.1.6 設(shè)置網(wǎng)卡

聯(lián)網(wǎng)環(huán)境下稍稍等待一下,即可自動(dòng)獲取到IP地址。

image-20241114173545560

2.1.7 配置代理

沒特殊需求不用理,直接下一步。

image-20241114173647636

2.1.8 設(shè)置鏡像源

后面可以設(shè)置,這里直接下一步。

image-20241114173737222

2.1.9 選擇裝系統(tǒng)的硬盤

多塊硬盤時(shí)需要進(jìn)行選擇。

image-20241114173856263

2.1.10 硬盤分區(qū)

默認(rèn)即可。

image-20241114174010125

image-20241114174108944

2.1.11 基本配置

設(shè)置名字、主機(jī)名、用戶名,設(shè)置用戶名密碼。

image-20241114174529043

2.1.12 升級(jí)Ubuntu pro

不升級(jí),選擇跳過。(默認(rèn)選項(xiàng)即是跳過。Skip)

image-20241114174620666

2.1.13 開啟ssh服務(wù)

這個(gè)建議開啟,否則還需進(jìn)系統(tǒng)修改,比較麻煩??崭襁x中。

image-20241114174916177

2.1.14 服務(wù)快照

這里不做選擇,直接下一步。

image-20241114174955738

2.1.15 系統(tǒng)自動(dòng)執(zhí)行安裝

等待進(jìn)度結(jié)束,點(diǎn)擊重啟即可。

image-20241114175034240

2.1.16 重啟

點(diǎn)擊重啟,等待服務(wù)器自動(dòng)重啟。

image-20241114175541450

2.1.17 登錄系統(tǒng)

輸入先前自己設(shè)置的用戶名與密碼。密碼為不可見狀態(tài),輸入完直接Enter。

image-20241114175915490

2.1.18 進(jìn)入系統(tǒng)

image-20241114175956769

三、系統(tǒng)設(shè)置

進(jìn)入系統(tǒng)后可使用ip add命令查看現(xiàn)有ip與網(wǎng)卡名稱,再通過終端工具連接,我使用SecureCRT進(jìn)行連接。

3.1 安裝網(wǎng)絡(luò)管理工具

superman@k8s-master:~$ sudo apt install net-tools
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  net-tools
0 upgraded, 1 newly installed, 0 to remove and 14 not upgraded.
Need to get 204 kB of archives.
After this operation, 819 kB of additional disk space will be used.
Get:1 http://cn.archive.ubuntu.com/ubuntu jammy/main amd64 net-tools amd64 1.60+git20181103.0eebece-1ubuntu5 [204 kB]
Fetched 204 kB in 1s (256 kB/s)   
Selecting previously unselected package net-tools.
(Reading database ... 74796 files and directories currently installed.)
Preparing to unpack .../net-tools_1.60+git20181103.0eebece-1ubuntu5_amd64.deb ...
Unpacking net-tools (1.60+git20181103.0eebece-1ubuntu5) ...
Setting up net-tools (1.60+git20181103.0eebece-1ubuntu5) ...
Processing triggers for man-db (2.10.2-1) ...
Scanning processes...                                                                                                      
Scanning linux images...                                                                                                   

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
superman@k8s-master:~$ 

3.2 配置ip

3.2.1 進(jìn)入到/etc/netplan/

superman@k8s-master:~$ cd /etc/netplan/
superman@k8s-master:/etc/netplan$ 
superman@k8s-master:/etc/netplan$ ls
50-cloud-init.yaml
superman@k8s-master:/etc/netplan$

3.2.2 備份網(wǎng)卡配置文件

此目錄下有一個(gè)為.yaml的文件,此文件為網(wǎng)卡配置文件,修改現(xiàn)有配置文件名稱為.bak如:50-cloud-init.yaml修改為50-cloud-init.yaml.bak

superman@k8s-master:/etc/netplan$ sudo mv 50-cloud-init.yaml 50-cloud-init.yaml.bak
[sudo] password for superman: 
superman@k8s-master:/etc/netplan$ 

3.2.3 查看網(wǎng)卡別名

superman@k8s-master:/etc/netplan$ ifconfig 
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.129  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::20c:29ff:fe1b:4d1  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:1b:04:d1  txqueuelen 1000  (Ethernet)
        RX packets 2089  bytes 732805 (732.8 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1371  bytes 248989 (248.9 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 200  bytes 16264 (16.2 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 200  bytes 16264 (16.2 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

superman@k8s-master:/etc/netplan$

3.2.4 修改網(wǎng)卡配置文件

superman@k8s-master:/etc/netplan$ sudo vim 01-netcfg.yaml
network:
  version: 2
  renderer: networkd
  ethernets:
    ens33:
      dhcp4: no
      addresses:
        - 192.168.1.131/24
      gateway4: 192.168.1.1
      nameservers:
        addresses: [202.102.224.68,202.102.227.68]

保存退出–先按一下esc,然后輸入“:wq”點(diǎn)擊“Enter”。

說明:

ens33 —為服務(wù)器的網(wǎng)卡名稱。
192.168.1.131/24 —為此臺(tái)服務(wù)器的ip/子網(wǎng)掩碼。
gateway4: 192.168.1.1 —網(wǎng)關(guān)。
addresses: [202.102.224.68,202.102.227.68] —是DNS,不需要連外網(wǎng)可以不設(shè)。

3.2.5 重啟網(wǎng)卡

superman@k8s-master:/etc/netplan$ sudo netplan apply

** (generate:2340): WARNING **: 11:02:18.289: Permissions for /etc/netplan/01-netcfg.yaml are too open. Netplan configuration should NOT be accessible by others.

** (generate:2340): WARNING **: 11:02:18.289: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.
WARNING:root:Cannot call Open vSwitch: ovsdb-server.service is not running.

** (process:2338): WARNING **: 11:02:18.709: Permissions for /etc/netplan/01-netcfg.yaml are too open. Netplan configuration should NOT be accessible by others.

** (process:2338): WARNING **: 11:02:18.709: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.

** (process:2338): WARNING **: 11:02:19.022: Permissions for /etc/netplan/01-netcfg.yaml are too open. Netplan configuration should NOT be accessible by others.

** (process:2338): WARNING **: 11:02:19.022: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.

** (process:2338): WARNING **: 11:02:19.022: Permissions for /etc/netplan/01-netcfg.yaml are too open. Netplan configuration should NOT be accessible by others.

** (process:2338): WARNING **: 11:02:19.022: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.
superman@k8s-master:/etc/netplan$ 
superman@k8s-master:/etc/netplan$ ifconfig -a
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.131  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::20c:29ff:fe1b:4d1  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:1b:04:d1  txqueuelen 1000  (Ethernet)
        RX packets 6208  bytes 1186753 (1.1 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4710  bytes 932202 (932.2 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 200  bytes 16264 (16.2 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 200  bytes 16264 (16.2 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

superman@k8s-master:~$ 

3.3 重啟服務(wù)器

到此這篇關(guān)于Ubuntu Server 22.04.5 入門篇:詳盡安裝部署指南的文章就介紹到這了,更多相關(guān)Ubuntu Server安裝部署內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

最新評(píng)論

隆子县| 高平市| 崇信县| 梁山县| 锦屏县| 临江市| 武隆县| 大方县| 田阳县| 清远市| 永丰县| 韶山市| 永定县| 临城县| 翁源县| 仪陇县| 绥芬河市| 资阳市| 奉节县| 凉城县| 华阴市| 方城县| 二手房| 东莞市| 昌都县| 永年县| 东山县| 南投市| 辽阳县| 上饶县| 五峰| 芦山县| 城步| 潢川县| 纳雍县| 额敏县| 林甸县| 洪江市| 合山市| 永城市| 汝阳县|