查看nexus的日志出现
Error occurred while executing a write operation to database 'component' due to limited free space on the disk (4001 MB). The database is now working in read-only mode. Please close the database (or stop OrientDB), make room on your hard drive and then reopen the database. The minimal required space is 4096 MB. Required space is now set to 4096MB (you can change it by setting parameter storage.diskCache.diskFreeSpaceLimit) .
进入容器 /etc/security/limits.conf 修改当前账户限制
官方说话
One approach you could use to freeing up disk space is to temporarily move one of your database directories to a location with more space and create a symlink to point to it. For instance, to move the component database:
- stop nexus
- move the sonatype-work/nexus3/db/component directory to another location. Keep performance in mind when choosing a location if possible. Also make sure the permissions are retained.
- create a symlink to point to the new component directory
- start nexus This should give you enough space to get the system running. Once you have added more space to the disk, you can move the database directory back to its original location.
软链接,最后镜像都起不来
最后解决方式
ulimit -n 32768
最后过一段时间居然镜像成砖头了哎!
当前环境的用户所有进程能打开的最大文件数量由ulimit -n决定