SpringBoot actual electricity supplier item mall (20k + star) Address: github.com/macrozheng/...
Summary
This article from the virtual machine is installed, Linux systems installed, SSH client tools use three to detail the installation and use Linux systems.
Virtual machine installation
VirtualBox is an open source virtual machine software, produced by Sun Microsystems, now developed by Oracle. VirtualBox is the strongest known as free virtual machine software, high performance and easy to use it. Virtual systems can include Windows, Linux, MacOS, Android and other operating systems! This article will use VirtualBox to install Linux as a virtual machine system.
VirtualBox installation
- We first download VirtualBox installation package, download address: www.virtualbox.org/wiki/Downlo...
- After the download is complete, double-click the installation package to run all the way to click Next:
- About halfway need to customize the installation path:
- Finally, click Finish to complete the installation.
Create a virtual machine
- Creating a Linux virtual machine:
- Allocate virtual machine memory size, can be determined according to their own computer configuration:
- Create a virtual hard disk:
- Set virtual hard disk file type, here select the DVI format:
- Select dynamic allocation of space, if your hard disk space is relatively large, you can choose a fixed size:
- Set the location and size of virtual hard disks:
Linux installation
CentOS (Community Enterprise Operating System) is one of the Linux distributions, Chinese meaning for the community enterprise operating system. It is the commercial version of the source code from Red Hat Enterprise Linux release in accordance with the provisions of the open-source compiler is made, it has high stability and is fully open source. This will be an example to introduce installation of CentOS 7.6 Linux systems.
download
- Download: vault.centos.org/7.6.1810/is...
- Download file: CentOS-7-x86_64-DVD-1810.iso
installation
- Virtual Machine Additions for the virtual CD, Virtual CD is specified as we downloaded the ISO image file:
- Click Start running virtual machines:
- After a successful run, choose
Install CentOS 7
to install:
- Select the language system installation, recommended to choose
English
options:
- Partial schematic required settings:
- Time zone, area selection
Asia
, select citiesShanghai
:
- Select Install Language Support English, Simplified Chinese two languages installation package:
- Software installation settings selected
Server with GUI
, three kinds of additional environmental simultaneously selected as shown:
- Disk Partitioning Setup, due to the small memory of my virtual machine settings, you need to create a larger
swap
partition, larger memory settings can directly select automatic partitioning, where we use manual partitioning:
- As shown by the manual partitioning operation;
-
Description of a few of the directory partition:
- /: Root partition;
- swap: swap partition, it can be the virtual memory usage;
- / Boot: the boot information and kernel information storage system;
- / Usr: application software installation information storage system;
- / Var: log information storage system.
-
Network settings, set the host name and the network activation:
- Click
Begin Installation
to install:
- During installation can be provided
root
a user password;
- After the installation is complete restart to enter the system, need to first start consent agreement and complete the configuration:
- At this point the host can not directly access the virtual machine, the virtual machine network model needs to be changed to bridging mode can.
Xshell use
Xshell SSH connection is a client tool that can be used for remote Linux operating system. Xshell for families and schools can use for free, provide a valid email, the download link will be sent to your mailbox.
-
Free version Application Address: www.netsarang.com/zh/free-for...
-
After downloading and installing complete Xshell, open a command line on a Linux system:
- Enter the
ifconfig
command to obtain an IP address;
- After the acquisition is completed to connect through Xshell, and enter the account number and password:
- You can use the remote Linux system after the connection is completed.
Other relevant
Modify the default startup mode
If you do not want to start the default graphical interface, you can modify the default startup mode, because the graphical interface is quite memory-intensive, use the following command.
# 将默认级别修改为多用户文本模式
systemctl set-default multi-user.target
# 将默认级别修改为图形用户界面模式
systemctl set-default graphical.target
# 重启
reboot
复制代码
Linux common commands
This can refer to the following: Developers must have a Linux command
the public
mall project a full tutorial serialized in public concern number the first time to obtain.