Introduction to Aliyun Server manual restart steps

Source: Internet
Author: User
Tags fpm svn aliyun


Today upgraded the system configuration, so in the Aliyun.com management console manually restart the server, restart, SSH login up again, the first feeling is scared, Murphy reboot after my data disk lost?

[Root@www-baidufe-com ~]# Df-hl

File system capacity has been used available with percent mount point

/DEV/XVDA1 20G 2.9G 16G 16%/
Tmpfs 245M 0 245M 0%/dev/shm

So I hastened to check the disk status:

[Root@www-baidufe-com ~]# fdisk-l | grep Disk
disk/dev/xvda:21.5 GB, 21474836480 bytes
Disk identifier:0x00073f45
disk/dev/xvdb:10.7 GB, 10737418240 bytes
Disk identifier:0xc8df244c

It's all right.
Hang up again.

[Root@www-baidufe-com ~]# mount/dev/xvdb1/alidata/

Check the disk condition again and come back.

[Root@www-baidufe-com ~]# Df-hl

File system capacity has been used available with percent mount point

/DEV/XVDA1 20G 2.9G 16G 16%/
Tmpfs 245M 0 245M 0%/dev/shm
/DEV/XVDB1 9.9G 4.2G 5.2G 45%/alidata

Avoid after restart, but also so come back, simply put the mount point to/etc/fstab file: Open the file, yy and P, a simple change can be.

Start a bunch of services

# Start SVN
Svnserve-d-r/alidata/svn-repos

# start Nginx
./alidata/server/nginx/sbin/nginx

# Start PHP-FPM
./alidata/server/php/sbin/php-fpm Start

# start MySQL
Service mysqld Start

Give Aliyun a suggestion.

Since this reboot button is the management console, you should make the console more intelligent, such as:
Automatically create a snapshot before restart (no need to back up data, only backup configuration, all currently open services)
Restart after the snapshot is complete
Restart quickly restores all system configurations and starts all services by following the previous snapshot
Restart complete
Or is:

Add some easy operations to the management console (backup configuration, disk mount, etc.)
Before restarting, the frame tells the user: "Restart everything again, please back up some things, and so on ..."
After reboot, the frame tells the user: The reboot is successful, please click the button here to restore all of your services (so you do not have to go step-by-step to find those services, such as Nginx, PHP-FPM, SVN, etc.)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.