当前位置:网站首页>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
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
边栏推荐
- Learn 30 programming languages in 1 minute
- Layout use case
- Implementing cos signature with postman
- Facebook was officially renamed meta, and the digital twin meta universe was applied!
- Mainstay of network detection - nping User Guide
- [tcapulusdb knowledge base] how to delete a table in tcapulusdb table management?
- Frequent screen flashing after VNC login - abnormal system time
- My eight year relationship with the message queue
- [untitled]
- [seckill] new / old users lock in the "explosive seckill zone" and snap up the one-year validity cloud function resource yyds for 63 yuan!
猜你喜欢

163 mailbox login portal display, enterprise mailbox computer version login portal

application. Yaml configuring multiple running environments

How to fill in and register e-mail, and open mass mailing software for free

layer 3 switch

Review of AI hotspots this week: the Gan compression method consumes less than 1/9 of the computing power, and the open source generator turns your photos into hand drawn photos

If there are enumerations in the entity object, the conversion of enumerations can be carried out with @jsonvalue and @enumvalue annotations

Stm32g474 infrared receiving based on irtim peripherals

BIM model example

Introduction to development model + test model
随机推荐
Analysis report on operation situation and development trend of global and Chinese diisobutyl aluminum hydride (Dibah) industry 2022-2028
tokio_ Rustls self signed certificate
Introduction to development model + test model
From idea to finished product, the necessary process of APP product development
Global and Chinese gallium industry market panoramic survey and investment strategy proposal report 2022-2028
Use cloudflare to defend against DDoS for free
What are the categories of code signing certificates? What are the differences between different types of certificates?
Tencent cloud database tdsql elite challenge --q & A
Tcapulusdb Jun · industry news collection (November 22)
2、 Shell position variable
[tcapulusdb knowledge base] common problems of tcapulusdb local deployment
5、 Array base
4-data persistence and shared interconnection
IP address and subnet partition are very important. This article is very fragrant!
Tcapulusdb Jun · industry news collection
Tencent music, slow down?
LeetCode 1289. Descent path min and II
8、 Pipeline pipeline construction project
Select problem set 3
163 mailbox login portal display, enterprise mailbox computer version login portal