当前位置:网站首页>Centeros environment setup

Centeros environment setup

2022-06-24 02:05:00 Milk cap

In daily work, many students' intranet working environment is not allowed to connect to the Internet , When you need to build an intranet development environment, you always need to download the required packages in the external network environment and install them on the intranet . At this time, if the environment of the intranet and the Internet is different, the files copied into the intranet may be unusable or prone to bug. Therefore, we need to pull packages on the Internet according to the environment version of the intranet . This article mainly introduces how to build the same virtual machine system as the intranet on the extranet , And pull the required file package from the Internet , Copy to intranet for environment construction .

Check the intranet linux Version of environment

With centerOS For example

[[email protected] ~]# lsb_release -a
LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID:    CentOS
Description:    CentOS release 6.7 (Final)
Release:    6.7
Codename:    Final
[[email protected] ~]# uname
Linux
[[email protected] ~]# uname -r
2.6.32-431.23.3.el6.x86_64
[[email protected] ~]# uname -a
Linux www 2.6.32-431.23.3.el6.x86_64 #1 SMP Thu Jul 31 17:20:51 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

You can view version information in both ways .

Virtual machine environment construction

Image download

It is recommended to use Alibaba cloud sites in China https://mirrors.aliyun.com/centos-vault Downloading images is faster , It can also be done on the official website centerOS Image download .

isos The folder is the image download path

Versions of ISO Image file description :

CentOS-7-x86_64-DVD-1708.iso Standard installation version ( recommend )

CentOS-7-x86_64-Everything-1708.iso Full version , Integrate all software ( To supplement the software of the system or to fill in the local image )

CentOS-7-x86_64-LiveGNOME-1708.iso GNOME The desktop version

CentOS-7-x86_64-LiveKDE-1708.iso KDE The desktop version

CentOS-7-x86_64-Minimal-1708.iso Lite version , With the least software

CentOS-7-x86_64-NetInstall-1708.iso Network installation version ( Install or rescue systems from the network )

Download the corresponding version number simplified version .

vmware install centerOS Mirror image

Hyperdetail vmware install centerOS course The author provides a nanny level tutorial

centerOS Basic environment configuration

Minimize installation network configuration

After the network configuration is completed, it can be used yum Install the required software .

[[email protected] ~]: vi /etc/sysconfig/network-scripts/ifcfg-ens33
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=c02aadee-742b-40f7-aa65-8dece35b4eae
DEVICE=ens33
ONBOOT=no

Press i key , Get into insert Pattern , take ONBOOT=no It is amended as follows ONBOOT=yes, Press esc Key back command Pattern , Input :wq Save and exit .

service network restart Restart network service

[[email protected] ~]: service network restart
Restarting network (via systemctl):                        [  OK  ]
[[email protected] ~]:

Finally, check the network information , You can see that has been assigned IP

Setting up IP Address

In the virtual machine CentOS7 Setting up IP Address method - cloud + Community - Tencent cloud (tencent.com)

Server configuration static IP Address 、 Routing and DNS

yum install net-tools 

Install command line web browser

yum install links

install apache http The server

yum install httpd

Minimized CentOS7 The system is not installed nano 、 vim 、 wget 、 curl 、 ifconfig 、 lsof 、 zip、unzip command , So it needs to be installed here ( Command interpretation :nano Is a character terminal text editor , Than vi/vim It's much simpler , More suitable Linux For beginners ; vim It's a multimodal editor ;wget It's a tool for downloading files ;curl Is a use of URL A file transfer tool that rules work on the command line ;ifconfig yes linux Used to display or configure network devices in ( Network interface card ) The order of ;lsof(list open files) Is a list of the current system open file tools ;zip、unzip Is a compression and decompression command tool

yum -y install nano vim wget curl  lsof zip unzip

More details can be found in the following documents

The system operational | After installation RHEL/CentOS 7 What we need to do after the war 30 thing ( One ) (linux.cn)

How to backup VMware Virtual disk files or migrate to other virtual machines - Experience in baidu (baidu.com)

原网站

版权声明
本文为[Milk cap]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/11/20211104174520706Q.html

随机推荐