In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Some time ago, when I was equipped with the company's server, I found that many tutorials on the Internet were disorganized, and then I sorted out an installation tutorial for the lnmp environment according to the information already available on the Internet. I haven't written a blog for a long time because I am lazy. Take advantage of the company to recruit new people, organize the previous documents again, and post a blog by the way. All right, let's cut the crap and start the text.
Virtual machine and CentOS7 installation
If you have no contact with friends of linux, it is recommended to start with the installation of virtual machines. VMware is mostly used. Here, I am using VMware12. After the installation is completed, as shown in the following figure, click create a new virtual machine to customize.
Next, the next step is to install the operating system later. Next, then select the corresponding version of linux, which I use 64-bit here.
Then select the location of the installation. Next, configure the number of virtual machine cores. Generally speaking, if you install the command line interface, 1 core is enough. This time I'm going to demonstrate it with a graphical interface, so I opened two cores.
The next step is to allocate memory, where memory needs to be a multiple of 4MB. Here my memory is 8G, so I allocate 2G to the virtual machine, everyone allocates it at your own discretion, and the command line can be allocated to 1G.
Then, next, choose the network connection method. Both bridging and NAT are possible.
And move on to the next step. Here, it is better to store the disk file as a single file, which is easy to manage.
Next, when the virtual machine is ready, click customize hardware to change the path of the system iso. Click close, finish, and turn on the virtual machine.
Centos7 will appear the following interface, enter, and then ask for installation, enter, and then the system image will install itself.
Then go to the following selection language interface.
Then the following interface will appear, waiting for the system to be tested, and the first is the installation selection.
Generally, servers used in production will choose to minimize installation. Then configure the required software on your own. Here I choose the desktop installation for a better demonstration.
Then select the disk location to install.
And then wait for the installation process to set the root password.
If you use a simple password, you need to do it twice.
After completing the installation restart, there will be a license interface, click accept license.
After some simple configuration, an account will be created again. This account is used to log in to the system, which is not available in the command line interface.
After the installation was completed, when I was on ping Baidu, I found that I could not connect. Maybe I forgot to configure the network when I installed it. It doesn't matter, then use the command line to open the network card configuration.
First use the su command to switch to root permissions. Some configurations of linux can only be modified with root permissions.
Type the following command and press the tab key, and you will be prompted for files that match the prefix.
Vi / etc/sysconfig/network-scripts/ifcfg-
The figure below is as follows
Enter the file editing interface as shown below, press I to change the no of the last line to yes, then press the ESC key to exit editing, type: wq enter to save and exit editing. Here is simply to start the network service, the ip address is still dynamic, because I am using the wifi network can not fix the ip address. )
After that, restart the network service with the following code, and use the ping command again, and you will find that the network is turned on.
Sudo systemctl restart network.service
At this point, the linux system and installation are complete.
The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.