安装后占用空间太大

问答中心分类: OneinStack安装后占用空间太大
helloxiaoxin asked 8 年 ago
博主你好,我用oneinstack安装centos7.2开发环境,制作vagrant的box,但是安装后发现占用空间太大,尤其是mariadb占用了好几个G的空间,我都还没建立任何网站呢,如何清理不会影响系统啊,特别着急,希望你能给我解答一下,谢谢

[vagrant@localhost /]$ sudo du -h --max-depth=1du
99M ./boot
0 ./dev
du: cannot access ‘./proc/4904/task/4904/fd/4’: No such file or directory
du: cannot access ‘./proc/4904/task/4904/fdinfo/4’: No such file or directory
du: cannot access ‘./proc/4904/fd/4’: No such file or directory
du: cannot access ‘./proc/4904/fdinfo/4’: No such file or directory
0 ./proc
4.4M ./run
0 ./sys
23M ./etc
36K ./root
4.0K ./tmp
866M ./var
3.1G ./usr
21M ./home
0 ./media
0 ./mnt
18M ./opt
0 ./srv
13K ./vagrant
148M ./data
0 ./vagrant_data
3.9M ./oneinstack
4.2G .

如何清理才能将虚拟机压缩到最小啊

1 Answers
oneinstack answered 8 年 ago
这个占有空间正常,oneinstack安装自己需要的组件,多余的不要安装