VMware安装和使用Ubuntu虚拟机

安装VMware

使用直链下载然后使用激活码的形式:
https://github.com/201853910/VMwareWorkstation
或者选择使用免费的个人授权:
https://www.cnblogs.com/EthanS/p/18211302

安装ubuntu

下载镜像:

https://ubuntu.com/download/desktop

安装

vmware新建虚拟机,选择使用下载的镜像
然后根据提示输入信息后会自动安装

使用

ping测试

ubuntu打开终端 安装 net-tools

sudo -i #切换到root用户
sudo apt update 
sudo apt install net-tools

安装完成之后运行:

ifconfig

找到网卡(第一串内容)找到inet的标识,后面跟着的就是ip地址
在windows下ping一下这个ip地址,如果可以ping通就表示成功了。

安装 SSH 服务

OpenSSH 是 Ubuntu 默认的 SSH 服务实现,可以使用以下命令安装:

sudo apt install openssh-server -y

安装完之后就可以通过ip来ssh连接虚拟机了

安装docker

curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun

设置开机自启

systemctl start docker
systemctl enable docker

配置镜像

https://cmd2.openbase.store/

(ps:太惨了,找个镜像需要找挺久)

安装docker-compose

sudo apt install docker-compose
暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇