To build the CentOs7 command, it is enough to read this article

This build environment CentOs7

Virtual machine VMware 15.5

jdk:jdk1.8

1. Log in to linux

2. Edit the configuration file

vi /etc/sysconfig/network-scripts/ifcfg-ens33

3. Edit the network environment

vi /etc/sysconfig/network-scripts/ifcfg-ens33
IPADDR=192.168.51.100//本Linux环境IP
NETMASK=255.255.255.0//子网掩码
GATEWAY=192.168.51.1
DNS1=8.8.8.8

Change the configuration, restart the network service

systemctl restart network

4. Firewall settings

systemctl stop firewalld
systemctl disable firewalld

after reboot

vi /etc/sysconfig/selinux
后
SELINUX=disabled

5. Install jdk

tar -xzvf jdk-8u141-linux-x64.tar.gz -C /kkb/install/
sudo vim /etc/profile

Set environment variables

export JAVA_HOME=/qinluyu/install/jdk1.8.0_141
export PATH=$PATH:$JAVA_HOME/bin

Make changes take effect immediately

source /etc/profile

For basic operations, please refer to the basic instructions of the above two articles

Linux basic environment configuration command sharing (continuously updated...)

Summary of 40 commonly used Linux commands (handwriting board) - Programmer Sought

Guess you like

Origin blog.csdn.net/qinluyu111/article/details/123645952
Recommended