前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >WINDOWS7五步快速搭建Centos7环境

WINDOWS7五步快速搭建Centos7环境

作者头像
逍遥子大表哥
发布2021-12-17 12:17:53
1.4K0
发布2021-12-17 12:17:53
举报
文章被收录于专栏:kali blog

下载VirtualBox并安装:

代码语言:javascript
复制
https://www.baidu.com/link?url=9delYKQ6ORC2fJwk6glYdpQQpOlr6h4YHHRWQ0IK_dmFEf1Td3K28obPy-o7Ymfwy9dKK00PsW-pRHZjKycAqP9dxdyHKY2C3EhnKQqzNb_&wd=&eqid=8e13ced40000aa9c000000025ade9aed 

2.下载Vagrant并安装:

代码语言:javascript
复制
https://releases.hashicorp.com/vagrant/2.0.4/vagrant_2.0.4_x86_64.msi 

3.在任意空目录下通过Vagrant初始化Centos7

vagrant init centos/7

出现以下则表示初始化成功:

代码语言:javascript
复制
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.

4.安装Centos7并启动

vagrant up

出现以下内容则表示安装并启动成功:

代码语言:javascript
复制
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'centos/7'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'centos/7' is up to date...
==> default: Setting the name of the VM: docker-node1_default_1524538386737_11529
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2200 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2200
    default: SSH username: vagrant
    default: SSH auth method: private key
    default:
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default:
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: No guest additions were detected on the base box for this VM! Guest
    default: additions are required for forwarded ports, shared folders, host only
    default: networking, and more. If SSH fails on this machine, please install
    default: the guest additions and repackage the box to continue.
    default:
    default: This is not an error message; everything may continue to work properly,
    default: in which case you may ignore this message.
==> default: Rsyncing folder: /cygdrive/c/A/vmimage/docker-node1/ => /vagrant

5.SSH连接并进入虚拟机:

代码语言:javascript
复制
vagrant ssh

出现以下命令行则表示连接成功:

vagrant@localhost ~$

这就已经连接到Centos下,可以进行相关操作

版权属于:逍遥子大表哥

本文链接:https://cloud.tencent.com/developer/article/1920462

按照知识共享署名-非商业性使用 4.0 国际协议进行许可,转载引用文章应遵循相同协议。

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 下载VirtualBox并安装:
  • 2.下载Vagrant并安装:
  • 3.在任意空目录下通过Vagrant初始化Centos7
  • 4.安装Centos7并启动
  • 5.SSH连接并进入虚拟机:
相关产品与服务
容器服务
腾讯云容器服务(Tencent Kubernetes Engine, TKE)基于原生 kubernetes 提供以容器为核心的、高度可扩展的高性能容器管理服务,覆盖 Serverless、边缘计算、分布式云等多种业务部署场景,业内首创单个集群兼容多种计算节点的容器资源管理模式。同时产品作为云原生 Finops 领先布道者,主导开源项目Crane,全面助力客户实现资源优化、成本控制。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档