【问题标题】:Clean install VestaCP全新安装 VestaCP
【发布时间】:2018-06-05 15:58:38
【问题描述】:

我有私人服务器
我使用 SSH 访问我的服务器
我已经删除 VestaCP(我使用http://vestacp.com/docs/#how-to-uninstall-vesta 方法)
我使用 UBUNTU 16.04 LTS

我尝试用这种方法清理vestaCP

apt-get remove --purge nginx apache2 apache2-utils apache2.2-common apache2-suexec-custom libapache2-mod-ruid2 libapache2-mod-rpaf libapache2-mod-fcgid bind9 idn mysql-server mysql-common mysql-client php5-common php5-cgi php5-mysql php5-curl libapache2-mod-php5 vsftpd mc exim4 exim4-daemon-heavy clamav-daemon flex dovecot-imapd dovecot-pop3d phpMyAdmin awstats webalizer jwhois rssh git spamassassin roundcube roundcube-mysql roundcube-plugins sudo bc ftp lsof ntpdate rrdtool dnsutils vesta vesta-nginx vesta-php

然后我尝试照常安装 VestaCP:

curl -O http://vestacp.com/pub/vst-install.sh; bash vst-install.sh --nginx yes --apache yes --phpfpm no --named yes --remi yes --vsftpd yes --proftpd no --iptables yes --fail2ban yes --quota no --exim yes --dovecot yes --spamassassin yes --clamav yes --mysql yes --postgresql yes

但我在 mysql-server-5.7 有错误:

mysql_upgrade 失败,退出状态为 11
dpkg:错误处理 包mysql-server-5.7

如何解决?

【问题讨论】:

    标签: mysql vesta


    【解决方案1】:

    以下是 VestaCP 在其文档中的一般建议:

    // 或许也可以尝试停止 mysql-server、apache2 和 nginx,以防它们阻止卸载。另外,如果有的话,你能发布输出/错误吗?

    1. 停止vesta服务
      service vesta stop

    2. 删除 vesta 包和软件存储库
      RHEL/CentOS:
      yum remove vesta*
      rm -f /etc/yum.repos.d/vesta.repo

      Debian/Ubuntu:
      apt-get remove vesta*
      rm -f /etc/apt/sources.list.d/vesta.list

    3. 删除数据目录和 cron
      rm -rf /usr/local/vesta

    老实说,如果您可以清除所有这些文件,那么重新安装操作系统可能会更容易。如果做不到这一点,请在旅途中获取另一个 VPS(虚拟专用服务器)。
    在新服务器上安装 Vesta,应用您的网站和数据库的任何备份,然后安装/设置任何服务(除了Vesta)你在当前服务器上运行。

    如果这完全不可能,您可以根据您使用的版本和 linux 发行版准确找出它安装了哪些软件包。例如 Ubuntu 版本的 click here

    if [ "$release" = '16.04' ]; then 正下方是脚本 apt-get 安装的软件块。

    【讨论】:

    • 我必须运行完全清除,不仅要删除vesta*: apt-get purge -y vesta* maria* libmysql* mysql* nginx apache2* exim* dovecot* && apt-get autoremove -y && rm -rf /etc/apache2
    【解决方案2】:

    尝试在安装命令中使用 --force 或重新安装 ubuntu

    【讨论】:

    • 请不要在您的帖子上签名。这就是您的个人资料的用途。
    猜你喜欢
    • 2015-02-16
    • 2019-07-31
    • 1970-01-01
    • 1970-01-01
    • 2016-11-26
    • 1970-01-01
    • 1970-01-01
    • 2020-12-11
    • 2020-05-19
    相关资源
    最近更新 更多