Home  >  Article  >  php教程  >  PHP server configuration loading hard disk

PHP server configuration loading hard disk

巴扎黑
巴扎黑Original
2016-11-07 16:25:331578browse

PHP server configuration to load the hard disk

1. Change the password

passwd

PHP server configuration loading hard disk

2. Test whether the password is successful

3. View the hard disk information

fdisk –l

PHP server configuration loading hard disk

4. Format Partition

fdisk /dev/vdb


PHP server configuration loading hard disk

5. View partition

PHP server configuration loading hard disk

6. Quickly format /dev/vdb1 to ext4 format

mkfs.ext4 /dev/vdb1

PHP server configuration loading hard disk

7. Load the partition to /opt

mount –t ext4 /dev/vdb1 /opt

PHP server configuration loading hard disk

8. Configure the partition to automatically load the file /etc/fstab

PHP server configuration loading hard disk

mount –a If not thrown If an exception occurs, the configuration file has no errors; restart the server and the hard disk can be automatically loaded.

In summary, you can start using the server.


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn