2

由于我分别维护数据库和 Web 服务器,我希望我的 Forge 维护的 Web 服务器没有 mysql,因为它往往会使用大量内存,即使我不使用它。

尝试运行 asudo apt-get --purge remove mysql-client mysql-server mysql-common将导致以下输出:

Reading package lists... Done Building dependency tree
Reading state information... Done Package 'mysql-server' is not installed, so not removed The following packages were automatically installed and are no longer required: ghostscript gsfonts imagemagick-common libaio1 libavahi-client3 libavahi-common-data libavahi-common3 libboost-context1.54.0 libboost-filesystem1.54.0 libboost-program-options1.54.0 libboost-regex1.54.0 libboost-system1.54.0 libboost-thread1.54.0 libcups2 libcupsfilters1 libcupsimage2 libdbi-perl libfftw3-double3 libgflags2 libgoogle-glog0 libgs9 libgs9-common libijs-0.35 libjasper1 libjbig2dec0 libjemalloc1 liblcms2-2 liblqr-1-0 libmagickcore5 libmagickwand5 libmemcached10 libpaper-utils libpaper1 libtbb2 libterm-readkey-perl libunwind8 linux-headers-3.13.0-52 linux-headers-3.13.0-52-generic linux-image-3.13.0-52-generic linux-image-extra-3.13.0-52-generic mysql-client-core-5.6 mysql-server-core-5.6 poppler-data Use 'apt-get autoremove' to remove them. The following packages will be REMOVED: hhvm libdbd-mysql-perl libmysqlclient18 mysql-client-5.6 mysql-common mysql-common-5.6 mysql-server-5.6 0 upgraded, 0 newly installed, 7 to remove and 4 not upgraded. After this operation, 113 MB disk space will be freed. Do you want to continue? [Y/n] n Abort.

如您所见,我要求删除 mysql,但它也会删除hhvm我想保留的!有什么办法可以做到这一点?

4

1 回答 1

0

HHVM 的 mysql 客户端和其他 mysql 功能(您几乎肯定想要)依赖于您试图删除的 mysql 客户端库。sudo apt-get remove mysql-server应该可以工作并删除 mysql 服务器,同时保留 HHVM 需要的客户端库完整。

于 2015-08-01T03:46:44.443 回答