主機的移轉
一、一行指令複製MySQL所有資料庫到新的server
mysqldump –all-databases -u[user] -p[pwd] | ssh user@[host/IP] mysql -u[user] -p[pwd]
超強!二、scp指令複製整個目錄到新的Server:
scp -rp sourcedirectory user@dest:/path三、裝完 httpd後要處理幾個地方
conf.d/userdir.conf<IfModule mod_userdir.c>
#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
#UserDir disabled
#
# To enable requests to /~user/ to serve the user's public_html
# directory, remove the "UserDir disabled" line above, and uncomment
# the following line instead:
#
UserDir public_html
</IfModule>
httpd.conf 加上:
<Directory /home/*/public_html> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory>SELinux chcon -R -t httpd_sys_content_t ~/public_html/ 關閉SeLinux setenforce 0 My Domain: http://kkhostdomain.supersite2.myorderbox.com/
