How to use soft links to solve directory transfer problems under Linux

  
        

How to use soft link to solve the problem of directory transfer under Linux: 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) Installed 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 can be partitioned) It is.

The specific operation commands are as follows:

#service httpd stop#service vsftpd 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