由于我分开维护数据库和Web服务器,我想让我的Forge维护的Web服务器没有mysql,因为它倾向于使用 lot 的内存,即使我没有&# 39;使用它。
尝试运行sudo 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
!有没有办法实现这个目标?
答案 0 :(得分:0)
sudo apt-get remove mysql-server
应该工作并删除mysql服务器,同时留下HHVM需要完整的客户端库。