Linux using soft links to solve the problem of directory transfer

  

The situation is as follows, sda2 (/) partition space is full, and sda3 (/home) partition is idle unused, due to the entire web service (apache, mysql, ftp) installation In the /www path of the sda2(/) partition, the only easy way is to transfer the /www directory to the sda3(/home) partition and configure a soft link (since the soft link is possible to span the partition). .

The specific operation commands are as follows:

#service vsftpd stop #service httpd stop #service mysqld stop #mv /www /home/www #ln -s /home/www /www #service mysqld Start #service httpd start #service vsftpd start

Copyright © Windows knowledge All Rights Reserved