当前位置:首页 > 云服务器 > 正文

云服务器怎样配置环境(云服务器怎么选配置)

How to configure the website environment on Alibaba Cloud Server?

Alibaba Cloud server configuration website environment can choose nginx or apache as the web server according to your own needs.

Nowadays, nginx is generally used as a web server or load balancing to forward to the application server. Log in to the Alibaba Cloud server remotely, install nginx, and then configure nginx. The default configuration file of nginx is as follows:

We can choose to use the default configuration of nginx, or we can set our own root directory. The function of the root directory is to point to the location where your web application is to be published. We can use the ftp tool to upload the web application to the root directory pointed to by nginx, and then reload nginx. Execute the following command:

nginx-sreload

In this way, you can access the web application just deployed through the IP address of the Alibaba Cloud server.

If you want to access the website through a domain name, you need to purchase a domain name, and then set up the domain name resolution to the Alibaba Cloud server in the backend of the domain name service provider, so that you can use the domain name to access the website. However, if it is a domestic server, website registration is still required. If the server is located in Hong Kong or overseas, registration is not required. You can access it by directly resolving the domain name to the server.

How to choose a cloud server and how to configure a cloud server [detailed explanation]
Sogou High-speed Browser is a modern web browsing tool that combines efficiency and stability. Utilizing advanced rendering engines and optimization algorithms, Sogou High-Speed ​​Browser ensures excellent page loading speed and smooth multimedia experience. It has a full range of security protection features and can effectively defend against various network threats. It also supports HTML5 and CSS3, ensuring perfect compatibility with the latest network technology standards. To learn more or download now, please visit How to choose a cloud server? How to configure cloud server configuration? Here I will share with you some cloud service selection tips, let’s take a look.
How to choose a cloud server?
Requirements
It is necessary to fully understand the average number of daily visitors to the website and the average number of people online at the same time, how big the current data is, whether it will increase rapidly in the future, whether the website is for national users or local users, etc. These will It is related to the selection of CPU, memory, bandwidth, hard disk, computer room lines, etc. After determining the website situation, you can make an estimation and selection based on various configuration parameters.
Price
When choosing a cloud host, you must base it on the price, including hardware configuration, pricing model, pricing strategy, broadband price, hardware configuration, price, etc., and the performance and price index of the cloud host dual-line cloud host. Evaluate and consider, remember not to be too one-sided and blindly look at the price or configuration, so that you can buy a suitable cloud host!
Brand
Cloud host is a high-tech product that has only appeared in recent years. It has high requirements for capital and technology. Only companies with advanced technology and strong capital can make cloud host products bigger and stronger. Currently, there are less than 10 companies in China that can provide real cloud hosts.
How to configure the cloud server?
When choosing a cloud server, don’t buy a good cloud host at the beginning. Users can choose a low-configuration cloud host. When they find that it is not enough, they can ask the cloud host service provider to upgrade. Upgrading only requires In one day, it can usually be done the next day. The following are some factors to consider:
Memory
When choosing a cloud host, you should mainly choose according to your own needs. You can choose the appropriate configuration according to the size of the website. For general applications, 1G memory is selected, and a hard disk configuration exceeding 50G is sufficient. If you have higher requirements for cloud server rental configuration, you can choose 4G memory.
Bandwidth
Bandwidth is a direct reflection of the opening speed of a website. The greater the bandwidth, the faster it opens when accessed. Users can purchase it according to their own website needs. Based on the ability to store their own data and the configuration for normal operation of the website, it is best to have additional spare configuration to face emergencies.
Hard disk
The bigger the hard disk, the better. It depends on the reading and writing speed. The reading and writing speed of the solid-state hard disk is higher than that of the mechanical hard disk. Generally, the reading and writing speed is about 2 times higher. ability.
Hard defense
Hard defense is a beneficial guarantee for a server. The higher the hard defense, the safer the website will be.
Computer room
Under normal circumstances, it is recommended that users choose Beijing or Shanghai computer rooms, because these two networks are the most developed and have low network latency. Most websites across the country also use IDC computer rooms in Beijing and Shanghai.
 
In summary, Sogou High-speed Browser is a browser carefully built to meet the needs of modern networks. Its professional development team not only focuses on providing a first-class user experience, but is also committed to continuously optimizing web page execution speed, enhancing security, and supporting various extension plug-ins to achieve a highly personalized browsing experience. If you are looking for a reliable, efficient and technologically advanced browser, Sogou High Speed ​​Browser will be your ideal choice. Please visit the official website to download and experience Sogou high-speed browser and experience the extraordinary browsing experience driven by advanced technology.

I just applied for an Alibaba Cloud server, how to configure it? How to create the same operating interface as an ordinary computer? How to configure wordpress environment?

1. The first step is to log in to the control panel - advanced environment settings - PHP version settings, and change the PHP version to the version you need php5.2./php5.3/php5.4 /That’s it.



2. Then some PHP programs will have requirements for the PHP version. . At this time, PHP5.3 and above are required. The cloud virtual host can support PHP5.5 and can be modified in the cloud virtual host management console, as shown in the figure below.



Advanced Environment Settings , then the functions and environment parameters you need to modify will be displayed. After selecting, click Save settings, as shown in the image below.




4. Then This is how to change the short_open_tag parameter in to On. The short_open_tag parameter in defaults to the On state and then save it, as shown in the figure below.



5. The next step is to configure the wordpress environment, double-click the XAMPP icon or change Just drag it to the application folder.



6. Then execute the following command in the terminal to install PHP7 execution environment. After the PHP7 installation is completed, we start to install Composer and execute the following command on the command line.



7. Finally, open the browser and go to https:// localhost. If you see the following screen, everything is fine.