Build an open source project 1 – how to build a Linux virtual machine

Time:2021-4-14

1、 Building a multi node Linux Environment

1. Required software and environment

  • Alicloud developer community
  • VMware fusion (virtual machine)
    Download address: http://mirrors.aliyun.com/centos/7/isos/x86_ 64/
  • CentOS (Linux image)
    Download address: https://www.vmware.com/cn/products/workstation-pro/workstation-pro-evaluation.html
  • SecureCRT (SSH midrange tool)
  • Transmit (transfer file)

2. Start installation

  • First of all, download our tools
    1.0
  • Then install VMware and start using the virtual machine
  • Add CentOS image
    1.09

1.1

  • Then set our memory (2GB), number of cores (dual core), and hard disk size (50GB). There is no fixed standard, as long as it is enough
    1.2
    1.3
  • After all the settings are set, start the initialization
    1.4
  • Choose the language and install the necessary software (this depends on yourself, also refer to my)
    1.5
    1.6
    1.7
    1.8
  • Finally, I choose the default partition mode to start the installation
    1.9
  • After installation, choose to connect to the Internet
    1.10
  • This is the interface after installation
    1.11

2. Start operation

  • Call the terminal window and input ifconfig to view the IP address of the host
    1.12
  • You can also use the shortcut key Ctrl + Alt + F2, or F1 to switch the terminal and user interface.
  • We need to give the virtual machine a specific IP address, and we can’t let it change every time. We use tools to randomly assign and generate one
  • First switch to root mode, command line: Su root
  • Use the tool dhclient to allocate, command letter: dhclient
    1.13
  • The IP address is 192.168.159.128
  • Edit the virtual network card to make the address static. Command line: VIM / etc / sysconfig / network scripts / ifcfg
  • Then select a network card, modify a property bootproto to static, make its IP address static, so that the address will not change randomly.
    1.14
  • Next, change it to “boot”
  • Add IPADDR = 192.168.159.128
  • NETMASK=255.255.255.0
  • GATEWAY=192.168.159.1
  • DNS1=119.29.29.29
  • Command line WQ exit
  • Then restart the network card, command line: systemctl restart network.service

2、 Source code:

  • CSDN:https://blog.csdn.net/weixin_44630050
  • Blog Park: https://www.cnblogs.com/ruigege0000/
  • Welcome to WeChat official account: Fourier transform, personal account, for technical exchange only.
    127.59

Recommended Today

Data stack product sharing: building real time big data processing platform based on streamworks

Counting stackWe have an interesting open source project on GitHub and giteeFlinkX,FlinkXIt is a unified batch data synchronization tool based on Flink. It can collect both static data and real-time data. It is a global, heterogeneous and batch data synchronization engine. If you like, please give us a star! star! star! GitHub open source project:https://github.com/DTStack/fl… […]