全新安装VestaCP [英] Clean install VestaCP

查看:114
本文介绍了全新安装VestaCP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有专用服务器
我使用SSH访问我的服务器
我已删除 VestaCP(我使用 http://vestacp.com/docs/#how-to-卸载Vista 方法)
我使用UBUNTU 16.04 LTS

i have private server
i using SSH for access my server
i have remove VestaCP (i using http://vestacp.com/docs/#how-to-uninstall-vesta method)
i using UBUNTU 16.04 LTS

我尝试使用这种方法清理 vestaCP :

I try to clean up vestaCP with this method:

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:

Then i try to install the VestaCP as usual:

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_upgrade failed with exit status 11
dpkg: error processing package mysql-server-5.7

该如何解决?

推荐答案

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

The following is generic advice from VestaCP in their documentation:

//也许也尝试停止mysql-server,apache2和nginx,以防万一它们阻止了卸载.另外,您可以发布输出/错误(如果有)吗?

// Perhaps try stopping mysql-server, apache2, and nginx as well, just incase they're holding up the uninstall. Also, can you post the output/errors if any?

  1. 停止维斯塔服务
    service vesta stop

  1. Stop vesta service
    service vesta stop

删除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

Remove vesta packages and software repository
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

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

Delete data directory and cron
rm -rf /usr/local/vesta

老实说,如果您可以清除所有这些文件,那么重新安装操作系统可能会更容易.失败的话,随时随地获得另一个VPS(虚拟专用服务器).
在新服务器上安装Vesta,应用网站和数据库的所有备份,然后安装/设置任何服务(除Vesta)您已在当前服务器上运行.

Honestly, if you're at a point where you can purge all these files, it's probably easier to reinstall your operating system. Failing that, get another VPS(Virtual Private Server) on the go.
Install Vesta on the new server, apply any backups of your website(s) and database(s), and then install/setup any services (other than Vesta) you had running on the current server.

如果这完全是不可能的,则可以根据所使用的版本和linux发行版确切地找到安装了哪些软件包.例如,对于Ubuntu版本,单击此处.

If that is completely out of the question, you can find out exactly which packages it installs depending on which version and linux distribution you use. For example the click here for the Ubuntu version.

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

Just underneath if [ "$release" = '16.04' ]; then is the block of software that the script apt-get installs.

这篇关于全新安装VestaCP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆