当前位置:网站首页>Server journey from scratch - Yu Zhongxian integrated version (IP access server, LNMP compilation and installation, Lua environment and socket expansion)
Server journey from scratch - Yu Zhongxian integrated version (IP access server, LNMP compilation and installation, Lua environment and socket expansion)
2022-06-25 19:06:00 【Fairy in feather】
Purpose and need to know before looking
Purpose :
The first step is to establish the most basic connection between the host and the virtual machine server .
The most basic thing is not to create a new virtual machine installation linux System . Want to connect to each other , You have to set up the network configuration from the beginning .
This article says to start from scratch , In fact, we have to start from scratch .
PS: The test system environment in this article is Win10+VWMware Under the Linux CentOS 7
YourCollectionandgive the thumbs-upIs the biggest support for bloggers
Look ahead and know :
We need to reach one word “ steady ”, as well as " Patience, ".
Conscious “ Diligence ” Baidu Learn to find resources It is also a powerful skill .
This article is about purity linux centos 7 Take compile install . It is not recommended that Mengxin take “ One click installation package ” Type of quick installation .
Slow compilation and installation , But it's safe .
Where is the safety ?
1. Know what you use liunx Installed in the system Callable commands .( Know which commands can be used directly , What needs to be installed separately )
2. During compilation and installation Errors reported in a certain step can be found in time And in this process, we can quickly practice and accumulate the foundation from scratch .
3, Know what you are accomplishing What architecture should be needed Instead of blindly installing .( Steer a ship , Don't keep paddling )
4. I haven't thought of .
PS: Some tough guys who get started and get started with ECS directly .
Documents to be prepared
1.VMware ( virtual machine ) —— VM12 From now on Suggest VM15 Register machine ( Crack ) Easy to find
2.Xshell6—— It is used to connect the server in the virtual machine
3.CentOS 7.iso——iso Is the suffix of the image file (4 individual GB about )
4. And installation packages for several environments Later, I will explain it slowly according to my own needs First gather all the above 3 individual
The first step is to start from scratch :Linux Creation of virtual machine & install CentOS 7
1. install Vmware( virtual machine ) success And download it CentOS 7 Image file
2. Running virtual machines choice file -> New virtual machine
Let's start Click with the picture
thus , We have taken the first step from scratch . Our virtual machine is created and installed CentOS 7 Pure system
Carry out our “ steady ” The attitude of : The new virtual machine we created is “ snapshot ”
PS: snapshot —— A snapshot is similar to a snapshot of a system “ Backup ”. however “ Backup ” It's a complete copy , and “ snapshot ” It is the system return according to the operation record time point , Be similar to “ Undo until you mark the undo point ”. Can be interpreted as photoshop History in .
The first step is to start from scratch complete !!!!
The second step is to start from scratch : The host connects to the virtual machine server remotely & browser ip Web access
One 、 The host connects to the virtual machine server remotely
1. Install well Xshell 6 as well as Get ready nginx.tar.gz 、pcre.tar.gz 、zlib.tar.gz Installation package (apache It's OK , Here I'm going to demonstrate nginx web Service Framework ).—— Yes, Baidu.
lnmpEnvironment installation package to download resources .
2. a key : Get ready for you —— Take notes —— Text .
3. With —— As Administrator —— start-up VMware virtual machine .
4. Configure the virtual machine network . Start following the diagram :
5. Run on the host Xshell 6. Start following the diagram :!
Two 、 browser ip Web access
1. Start in Xshell 6 Start compiling and installing on our server .( I'll use nginx Installation package Resources prepare themselves , Don't ask why I don't link to resources ? Because after a period of time, the link will fail )
2. Start Input Code + Note taking :
PS:Xshell 6 in The shortcut keys for pasting areShift + insert
install nginx
yum Commands are front-end software management commands It can be understood as yum It is just for installation yum install It means to install all
install nginx rely on :
yum install gcc gcc-c++ openssl openssl-devel cyrus-sasl-md5
In the future ——》choice
ythat will do
Come here nginx Depend on installation to complete .
stay root Under the directory, we create a folder
soft. And upload our software installation package to this folder .
mkdir soft
cd soft
Install upload command
yum install lrzsz
Input rz Upload
rz
uselsLists the files
Unzip the installation package
tar -zxf nginx-1.10.1.tar.gz
tar -zxf pcre-8.42.tar.gz
tar -zxf zlib-1.2.8.tar.gz
Enter the nginx Folder , And install and configure ( Encountered configuration related information before installing the software )
cd nginx-1.10.1
./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-pcre=../pcre-8.42 --with-zlib=../zlib-1.2.8
configured . Then install
make && make install
thus ,nginx Installation completed .
Then we need to modify the firewall . take CentOS7 Default firewall As firewall, change to iptables A firewall .
close firewall also prohibit firewall Boot up :
systemctl stop firewalld.service
systemctl disable firewalld.service
install iptables A firewall :
yum install iptables-services
Modify firewall profile add to 80 Port allow access settings .
vi /etc/sysconfig/iptables
stay -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT Add next line of
-A INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j ACCEPT
Restart the firewall for the configuration to take effect & Set the firewall to power on
systemctl restart iptables.service
systemctl enable iptables.service
start-up ngxin service & And see if nginx Successful startup
cd /usr/local/nginx/sbin/
./nginx
ps aux|grep nginx
Back to host Open the browser to access the virtual machine IP Address
Home page file storage path :
cd /usr/local/nginx/html/
ls
.......... Update slowly , Thank you for your support . The comments section raises questions and suggestions .
Because school + Internship Update from time to time and from time to time .
边栏推荐
- 网络安全检测与防范 测试题(四)
- Network security detection and prevention test questions (4)
- Training of long and difficult sentences in postgraduate entrance examination day86
- Guangzhou Sinovel interactive creates VR Exhibition Hall panoramic online virtual exhibition hall
- 如何快速关闭8080端口
- SVN介绍及使用总结
- Under what circumstances do you need to manually write the @bean to the container to complete the implementation class
- 2021 development status of China's cloud game industry and analysis of major service providers: Although cloud games are still in their infancy, the market prospect is huge [figure]
- solidity日期工具
- QQ机器人疫情查询/疫情关注等【最新beta2版本】
猜你喜欢

Detailed explanation of oauth2 - Introduction (I)

【C语言练习——打印上三角及其变形(带空格版)】

Elastic high-performance computing on the cloud supports the rapid development of the life science industry, reducing costs and increasing efficiency

JVM|运行时数据区(堆空间)
![Analysis on policy, output and market scale of China's natural gas hydrogen production industry in 2020 [figure]](/img/f2/ec0fe8bec503c8788d6d549845b95c.jpg)
Analysis on policy, output and market scale of China's natural gas hydrogen production industry in 2020 [figure]

《痞子衡嵌入式半月刊》 第 57 期

初探Oracle全栈虚拟机---GraalVM

Idea annotation color modification method (clear)

On location and scale in CNN
![Analysis on China's aluminum foil output, trade and enterprise leading operation in 2021: dongyangguang aluminum foil output is stable [figure]](/img/e8/027e8a6cbdc4454e7a18ed7aa2122a.jpg)
Analysis on China's aluminum foil output, trade and enterprise leading operation in 2021: dongyangguang aluminum foil output is stable [figure]
随机推荐
Comparison rules of strings in JS
Training of long and difficult sentences in postgraduate entrance examination day84
Some recursive and iterative problem solving ideas of binary tree (clear and easy to understand)
[today in history] June 25: the father of notebook was born; Windows 98 release; First commercial use of generic product code
Elastic high-performance computing on the cloud supports the rapid development of the life science industry, reducing costs and increasing efficiency
Jump jump games auxiliary (manual version) py code implementation
2017 reading (word memory)
Analysis on China's aluminum foil output, trade and enterprise leading operation in 2021: dongyangguang aluminum foil output is stable [figure]
Tcp/ip test questions (I)
Analysis on planting area, output and import of sugarcane in Guangxi in 2021: the output of sugarcane in Guangxi accounts for 68.56% of the total output of sugarcane in China [figure]
谈谈CNN中的位置和尺度问题
[elt.zip] openharmony paper Club - memory compression for data intensive applications
Training of long and difficult sentences in postgraduate entrance examination day89
【ELT.ZIP】OpenHarmony啃论文俱乐部—数据密集型应用内存压缩
Analysis of global tea production, consumption and import and export trade: China's tea production ranks first in the world [figure]
mysql my. Understanding CNF depends on configuration
TCP/IP 测试题(一)
Analysis on the development trend of China's intense pulsed light equipment industry in 2021: the market scale is growing, and the proportion of imported brands is large [figure]
R语言plotly可视化:plotly可视化二维直方图等高线图(Basic 2D Histogram Contour)
Uncover ges super large scale graph computing engine hyg: Graph Segmentation

























































!





choice 


















