为什么 laravel ubuntu 服务器占用这么多 space 硬盘

why laravel ubuntu server take so much space of hard drive

我的laravel服务器硬盘140GB已满, 我不明白为什么 laravel 需要所有这些 space

i check laravel folder size is 1GB and mysql database is 4GB. i cleaned my storage logs and views and caches still no space.

我用过:

ubuntu 20.04
laravel 8
redis server 
memcached server
laravel horizon
mysql database
nginx server

1-为什么 laravel 需要这一切 space??

2-我如何清理我的服务器(运行 服务器,我需要我所有的数据和配置)

更新:

after search on all server folders size i found this records

155922466       /
149611964       /var
128542076       /var/log
76998556        /var/log/syslog.1
45773836        /var/log/syslog
20042652        /var/lib
18252444        /var/lib/mysql
3669391 /snap
1958038 /snap/google-cloud-sdk
1846628 /usr
1528680 /var/lib/snapd
1022012 /var/lib/snapd/snaps
982095  /snap/google-cloud-sdk/191
975939  /snap/google-cloud-sdk/190
928920  /var/www
928904  ***laravel-project
858288  /var/log/syslog.5.gz
852952  /var/lib/mysql/ **mysql database
819620  /var/log/journal

深度搜索后

laravel dosn't take all this space or mysql database.

系统日志占用多space

/var/log/syslog

如何解决?

1- delete old /avr/log/syslog.x / syslog.x.gz
2- check which proccess caused this errors
$ tail -f /var/log/syslog
3- fix your error and delete old log.x/log.x.gz files