当前位置:网站首页>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
边栏推荐
- Shopify has quietly taken the second place in e-commerce in North America. Is independent station the "magic weapon" to win?
- Vivo global mall: design and practice of commodity system architecture
- A complete collection of SQL commands. Each command has an example. Xiaobai can become a God after reading it!
- A multifunctional SSH Remote Server Management Tool
- 4、 Variable assignment method
- [new features] Tencent cloud lightweight ECS will soon support attaching data disks!!!
- Comparison between rule engine and ML model - xlaszlo
- Tcapulusdb pays high tribute to Chinese journalists!
- Tcapulusdb Jun · industry news collection
- LeetCode 1289. Descent path min and II
猜你喜欢

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

application. Yaml configuring multiple running environments

BIM model example

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

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

Stm32g474 infrared receiving based on irtim peripherals

Introduction to development model + test model
随机推荐
[dry goods] four tools linkage of automated batch hole digging process
Analysis report on operation situation and development trend of global and Chinese diisobutyl aluminum hydride (Dibah) industry 2022-2028
The core battlefield of China US AI arms race: trillion level pre training model
No serializer found for class ** and no propert no properties discovered to create BeanSerializer
What is the cloud desktop server configuration? What are the application scenarios of cloud desktop?
[tcapulusdb knowledge base] how to delete a table in tcapulusdb table management?
LeetCode 1289. Descent path min and II
[tcapulusdb knowledge base] how to get started with tcapulus SQL driver?
Tcapulusdb Jun · industry news collection
Facebook was officially renamed meta, and the digital twin meta universe was applied!
Frequent screen flashing after VNC login - abnormal system time
6、 Symbols and commands for numerical calculation of variables
The new purchased machines with large customized images are slow to enter the system
Easycvr connects with Huawei IVS platform to query the foreign domain list interface definition and use sharing
Tencent cloud won the first place in the cloud natural language understanding classification task
How to solve the problem of uncaught (in promise) when easywasmlayer plays a video?
Tcapulusdb pays high tribute to Chinese journalists!
[read together] Web penetration attack and defense practice (I)
What is raid? 2000 words can explain RAID 0, 1, 5 and 10 thoroughly, and collect!
My eight year relationship with the message queue