Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to migrate a website to a CVM

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article uses easy-to-understand examples to introduce how to migrate the website to the cloud server, the content is very detailed, interested friends can refer to, hope to be helpful to you.

Many users start to use a virtual host when they build a station. After a period of time, the website develops and grows. Maybe the virtual host can no longer meet the demand and need to migrate the site to the CVM. What should we do then?

Backup the data of the virtual host

1. Back up the mysql database, go to the virtual host management panel, click the database on the left, and click "backup mysql database to databases directory" to complete the backup of mysql database tables.

2. Back up the web site. In the virtual space management panel, click "extract / compress"-"online compression", mysql database table file package, in the virtual host management panel, click "extract / compress"-"to online compression".

3, mssql database backup (if there is no database, please skip): log in to the website, click "Business Management"-"mssql Database"-"Management" to enter the database online management, click the "backup" button to back up the database as bak files, and then click "download backup" to download the backup files to the local or server.

2. Restore the data of the CVM

1. Log in to the CVM and use the website management assistant to create a new site. When building the site, the FTP account and password of the original virtual host are used as the FTP account and password of the original virtual host, and the database account and password of the original virtual host are also used. The purpose of this operation is to facilitate site recovery.

2. If the website space has not expired, please download it directly with the domain name and file name. For example, if the website is very large, it will take some time to compress it. It is recommended to download it 5-10 minutes after compression. If the space expires, please use the FTP tool to download the package directly on the server. Website programs and mysql database files can be downloaded by logging in to FTP.

3. Download the FTP tool to the CVM and open it. Enter the FTP address for the "host" and write the FTP account for the "user name". The password is written as the FTP password, and the port is not modified, and then connect to FTP. Go to the wwwroot directory, select the compressed package you just backed up, such as wwwroot.rar and databases.rar files, and right-click to download. After decompressing the compressed package, you can place it in the corresponding directory leased by the CVM.

About how to migrate the website to the cloud server to share here, I hope the above content can be of some help to you, you can learn more knowledge. If you think the article is good, you can share it for more people to see.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report