首先使用find / -name "mysql.server"找到地址路徑后 cp $path /etc/init.d/mysqlhttp://blog.csdn.net/k346k346/article/details/51831534