【发布时间】:2019-01-24 13:31:15
【问题描述】:
尝试在我拥有的 ec2(目前正在运行 3 个站点)上安装 plesk。根据我的阅读,plesk 只能在普通服务器上运行(希望不是这种情况)。
安装崩溃上线:
Synchronizing state of mysql.service with SysV init with /lib/systemd/systemd-
sysv-install...
Executing /lib/systemd/systemd-sysv-install enable mysql
之后的错误是:
Trying to establish test connection... mysql: [Warning] World-writable config
file '/root/.my.cnf' is ignored.
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password:
NO) failed
One more attempt to connect
ERROR while trying to establish test connection. If you are installing Plesk
on an already configured MySQL server, you need to specify the administrator's
credentials to succeed with the installation. To do this, you need to create a
file - /root/.my.cnf with the 'client' section where you need to provide user
and its password ("user = $admin_name" and "password = $admin_pass"). After
installation is finished, the file /root/.my.cnf will be renamed to
/root/.my.cnf.bak
Check the error reason(see log file:
/var/log/plesk/install/plesk_17.8.11_installation.log), fix and try again
***** problem report *****
ERROR while trying to establish test connection. If you are installing Plesk on
an already configured MySQL server, you need to specify the administrator's
credentials to succeed with the installation. To do this, you need to create a
file - /root/.my.cnf with the 'client' section where you need to provide user
and its password ("user = $admin_name" and "password = $admin_pass"). After
installation is finished, the file /root/.my.cnf will be renamed to
/root/.my.cnf.bak
Check the error reason(see log file:
/var/log/plesk/install/plesk_17.8.11_installation.log), fix and try again
sh: 1: /etc/init.d/psa: not found
我已经像这样添加了文件 /root/.my.cnf:
Client
User: xyz
Password: xyzxyz
但它仍然无法拾取或使用它(一遍又一遍地更改权限)。
有没有人能够克服这个错误?
干杯
【问题讨论】:
-
/root/.my.cnf 应该是这样的:[client] user = root password = root_password
标签: mysql ubuntu amazon-ec2 plesk plesk-onyx