- Back up both your files and database
- Using Drupal, log in as any user with the permission “Administer software updates”.
- Using Drupal, put your site into maintenance mode. To do so:
- Choose one of the following two options to remove the files in the top-level directory and the ‘core’ and ‘vendor’ directories:
- http://www.example.com/update.php (replacing www.example.com with your domain name). This will update the core database tables.">Using your browser, run update.php by visiting http://www.example.com/update.php (replacing www.example.com with your domain name). This will update the core database tables.
官网指导: <链接>
Back up both your files and database
Having a complete backup makes it easy to revert to the prior version if the update fails.
Optionally, if you made manual modifications to files like
.htaccess
,composer.json
, orrobots.txt
, copy them somewhere easy to find. Because after you’ve installed the new Drupal core, you will need to re-apply the changes. For example, Acquia Dev Desktop places a .htaccess file in the top-level directory and without it, only the homepage on your site will work.
Using Drupal, log in as any user with the permission “Administer software updates”.
Using Drupal, put your site into maintenance mode. To do so:
- Navigate the admin interface to Administration > Configuration > Development > Maintenance mode.
- Check “Put site into maintenance mode” checkbox.
- Click on “Save configuration”.
Choose one of the following two options to remove the files in the top-level directory and the ‘core’ and ‘vendor’ directories:
Using the shell
Navigate into your Drupal installation.
cd /path/to/your/drupal/directory
Remove the ‘core’ and ‘vendor’ directories.
rm -rf core vendor
Remove all of the files in the top-level directory.
rm -f *.* .[a-z]*