当前位置:网站首页>The whole process of server environment configuration
The whole process of server environment configuration
2022-07-26 09:34:00 【Jack-ZOU】
Now the traditional virtual host has no way to meet the needs , It has become a trend to set up servers or use commercial cloud hosts .
I have used virtual host , Used it, too VPS, But in the last two years, I began to contact virtual machines , I chose Alibaba cloud virtual machine and orange connected virtual machine . At the beginning , Always choose a fully configured image to install the operating system , After installation , You don't need to build your own environment , Just set up your own website , Even the website has software to help you set up 、 Opening . There are many software of this kind , In addition to mirroring , There is also one key configuration software , After installing the operating system, use software to configure the following .
In the process of use, I also found that although this method is worry free , But after all “ factory " What comes out of it , It's hard to personalize , It will bring some trouble to use . such as , After installing the environment with software , The default website path will change , It will go to the directory where the configuration software is installed , So install it at the back AD CS For software that needs to use the default website path , There will be more problems in the setting , Once the access permission is not set , It may affect the normal installation and use of the software . in addition , The automatic configuration software will also give you the bundled software , For example, Alibaba cloud's one click configuration , Finally, I want to install phpwin As the default website , And there are often mistakes in the installation process , There is a problem with permission configuration .
For the above reasons , Yesterday, I took the time to configure the environment myself , Even if it's an exercise , In fact, the previous theoretical preparation has been a long time .
I use Alibaba cloud's virtual machine . The main steps are as follows :
1: Reinstall the operating system . Use the image of the system , install Windows2008R2,64 Bit Chinese version .
2: install WinRAR. This is required when installing the software , No decompression , Some compression software cannot be installed .
3: Simultaneous configuration AD CS ( If you need certificate services , Ordinary people may not have this need )、IIS. Configuration under this coincidence AD CS Surprisingly smooth .AD CS In the service function , Now the first three .IIS When installing , Except tick asp.net Outside , Don't forget to check CGI.
4: install Mysql. There are websites to download . Online say font set selection GBK, So I chose . The installation was quite smooth .
5: install phpmanager. This is installing php Post configuration is required . Is the installation file , Click to install successfully . After installation IIS Manager ,IIS You can see php manager.
6: install PHP. This process took a little trouble . The version you started downloading is not the installed version , Configure according to the introduction , But the test shows 500 error . Later, I downloaded an installation version , It went very well . Install well PHP It needs to be set after , open IIS Medium PHP manager, Link to the new PHP edition . The specific operation is after installation PHP There is a hint after , You can refer to the above documents and web pages .
7: install Wincache. This is acceleration PHP Running . It's an installation file . Installation tips do , After installation, you need to unzip the php_wincache.dll copy to PHP Installation directory exe In the folder , And in PHP Change under the directory php.ini, Add a sentence at the end :extension=php_wincache.dll.
8: install URL Pseudostatic . Install the downloaded Rewrite Module. The pseudo static setting depends on the application software .
9: install Serv-U. This is a relatively easy to use FTP Software . But if the configuration is not modified after installation , When you visit the website on the server in the future , If there is a problem with the configuration , It will go to SERV-U Login interface . And it happens all the time IIS The website was stopped , The website cannot be accessed . as a result of , In the latest version ,Serv-u To monitor 80 Port and 443 port , After restarting the server , because Serv-U Start... First , Preempted the necessary ports for these two websites , Subsequently started IIS You can't grab the port , The website cannot be accessed normally . Open the website address , It's all about Serv-U Login screen ( Compare rogues ). One solution is , On the server side , First stop Serv-U service , Restart IIS service , And open Serv-U service . I did this before , I still can't figure out the truth , Now I see , I can modify it Serv-U Listening port , hold 80 and 443 Just change to another port . In this way, the server will restart for various reasons , There is no need for manual configuration . But from the bottom of my heart ,Serv-U To configure the FTP It's still very good , Than Windows The one I brought with me FTP Much better .
10: Another thing that needs to be installed is phpmyadmin 了 . This is not an installation , It's configuration . There are two places to put this directory , One is to put it in the root directory of the default website , The way to access is http://IP/phpmyadmin.
The other is to establish a physical path like other websites , Because there is no domain name , So don't bind . But in order to avoid conflicts with the default website , The port should be changed to 80 Other ports , Some people change it to 8080. The access method is http://IP:8080 了 .
Next install Zend Optimizer, This is optimization php programmatic , Can improve php The efficiency of the website . The installation files , There is no difficulty in installation .Zend Guard Not for the time being , It will not be installed .
Next, configure the website . This is the most fundamental task , The ultimate goal of the server is to run a website . Configured for several years , Finally, I have my own experience this year , Share it another day .
边栏推荐
猜你喜欢
随机推荐
matlab simulink实现模糊pid对中央空调时延温度控制系统控制
POJ 1012 Joseph
吴恩达机器学习之线性回归
Mo team learning summary (II)
官方颁发的SSL证书与自签名证书结合实现网站双向认证
js 表格自动循环滚动,鼠标移入暂停
大二上第一周学习笔记
Implementation of fragment lazy loading after multi-layer nesting
nodejs中mysql的使用
ie7设置overflow属性失效解决方法
Table extraction for opencv table recognition (2)
Network flow learning notes
JS one line code to obtain the maximum and minimum values of the array
如何添加一个PDB
一种分布式深度学习编程新范式:Global Tensor
[MySQL] understand the important architecture of MySQL (I)
C# 托管与非托管
系统安装Serv-U后IIS出错提示:HRESULT:0x80070020
JS 一行代码 获取数组最大值与最小值
Gauss elimination





![[MySQL] understand the important architecture of MySQL (I)](/img/89/5fb595b0112fac987626857b76f9a4.png)



