关于docker迁移redisr等运行状态一直是restart...

记一下
上传后还成镜像
docker load -i g-redis.tar

docker run --restart=always --log-opt max-size=100m --log-opt max-file=2 -p 6379:6379 --name redis -v /home/xexun/redis/myredis/myredis.conf:/etc/redis/redis.conf -v /home/xexun/redis/myredis/data:/data -d g-myredis redis-server /etc/redis/redis.conf  --appendonly yes  --requirepass xexun_justin168

-d 后面应该写镜像名。。。
mongodb好像也有一直重启的情况,后面重新停止后复制文件迁移就好,估计是当时未正常停止?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
As an AI language model, I do not have access to the specific context of the issue you are facing. However, here are some general steps that you can take to troubleshoot the issue: 1. Check the logs: The first step in troubleshooting any service-related issue is to check the logs. In most cases, you can find the logs for Redis service in the /var/log/redis/redis-server.log file. Check the logs for any error messages or warnings that might indicate the cause of the failure. 2. Check the configuration: Make sure that the Redis configuration file (/etc/redis/redis.conf) is properly configured. Check the file for any syntax errors, typos, or incorrect settings. 3. Restart the service: Try restarting the Redis service using the following command: sudo systemctl restart redis 4. Check the status: After restarting the service, check the status of the Redis service to see if it is running: sudo systemctl status redis If the status shows that the service is still failing, check the logs again for any new error messages. 5. Check the system resources: If Redis is consuming too much system resources, it may fail to start or crash. Check the system resources (CPU, memory, disk space) and make sure that they are not being exhausted. 6. Reinstall Redis: If none of the above steps work, you may need to reinstall Redis. First, remove the existing Redis installation using the following command: sudo apt-get remove redis-server Then, reinstall Redis using the following command: sudo apt-get install redis-server Note that this will remove all existing Redis data, so you will need to backup and restore any Redis data that you need.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值