解决docker容器存放目录磁盘空间满了问题

piaoling  2020-02-20 11:18:52

前言 docker所在服务器,运行了一段时间后,发现服务器磁盘目录快不够用了。通过du -h --max-depth=1 /逐级目录排查,发现/var/lib/docker目录文件过大。通过以下方法,解决该问题。 转移数据修改docker默认存储位置 有多种方式修改docker默认存储位置。 最好是在docker安装完后,第一时间修改docker默认存储位置为其他大目录或者磁盘中。规避迁移数据过程中造成的风险。 停止docker服务 systemctl stop docker 创建新的docker目录......

类别 :  默认(762)  |  浏览(6386)  |  评论(0)

脚本

piaoling  2018-10-29 11:16:20

Function gotoPosition()     MoveTo 225, 568     Delay 2428     LeftClick 1     MoveTo 199, 331     Delay 1648     LeftClick 1     Delay 1025     KeyDown "2", 1     Delay 91     KeyUp "2", 1     Delay 441     KeyDown "9", 1     Delay 58     KeyUp "9", 1     Delay 203     KeyDown "9", 1     Delay 54     KeyUp "9", 1    &......

类别 :  默认(762)  |  浏览(6046)  |  评论(0)

email content filter double mail send

piaoling  2018-02-27 16:59:39

add -o receive_override_options=no_address_mappings smtp inet n - - - - smtpd -o content_filter=spamassassin -o receive_override_options=no_address_mappings https://serverfault.com/questions/18707/postfix-send-double-mail-when-mail-is-forwarded Most likely you have a content filter and the always_bcc is being called both before and after the content filter. Customise the smtpd either before or after the content filter to include -o receive_override_options=no_address_mappings (Note that options in mas......

类别 :  默认(762)  |  浏览(9158)  |  评论(0)

阿里云 Ubuntu 支持 IPv6 的完整步骤

piaoling  2017-12-08 12:15:10

使用 Hurricane Electric Free IPv6 Tunnel Broker 来让阿里云服务器支持 IPv6 前几天提交新版 iOS App 被拒,原因是在 IPv6 only 的环境下无法使用。但阿里云的 ECS 并不支持 IPv6,只提供 IPv4 的 IP。好在 Hurricane Electric (下文简称 HE)提供免费的 IPv6 通道,基本够用了。 先说下 ECS 的基本环境: 操作系统:Ubuntu 前端服务器:Nginx 启用 IPv6 的主要有四步: 注册并创建 IPv6 通道 配置 ECS 使其支持 IPv6 ......

类别 :  默认(762)  |  浏览(10047)  |  评论(0)

wg

piaoling  2017-03-03 12:53:51

wget --user-agent Mozilla/5.0 --cookies=on --load-cookies=cookie.txt --keep-session-cookies --save-cookies=cookie.txt '' "url" -O filename.zip --no-check-certificate......

类别 :  默认(762)  |  浏览(9473)  |  评论(0)

wetransfer

piaoling  2017-02-28 17:51:34

wget --user-agent Mozilla/5.0 --cookies=on --load-cookies=cookie.txt --keep-session-cookies --save-cookies=cookie.txt '' -O filename.zip --no-check-certificate......

类别 :  默认(762)  |  浏览(9067)  |  评论(0)

magento性能优化的教程(非常详细)

piaoling  2016-08-04 13:36:09

magento性能优化的教程(非常详细) Magento是一套专业开源的电子商务系统,Magento设计得非常灵活,具有模块化架构体系和丰富的功能但有朋友会发现此模块用到了会发现非常的缓慢了,那么下面我们来看关于magento性能优化的例子。 前面优化 mod_deflate模块,将text、 css 和 javascript 先进行压缩再发送到浏览器。这样就会减少网络下载量,缩短等待时间,示例如下: # Insert filter on all content     SetOutputFilter DEFLATE     # Insert ......

类别 :  magento(258)  |  浏览(16809)  |  评论(1)

linux下svn命令大全

piaoling  2016-06-28 11:39:58

1、将文件checkout到本地目录 svn checkout path(path是服务器上的目录) 例如:svn checkout svn://192.168.1.1/pro/domain 简写:svn co 2、往版本库中添加新的文件 svn add file 例如:svn add test.php(添加test.php) svn add *.php(添加当前目录下所有的php文件) 3、将改动的文件提交到版本库 svn commit -m “LogMessage“ [-N] [--no-unlock] PATH(如果选择了保持锁,就使用–no-unlock开关) 例如:svn commit -m “add test file for my test“ test.php 简写:svn ci 4、加锁/解锁 svn lock -m “LockMessage“ [--force] ......

类别 :  svn(3)  |  浏览(8714)  |  评论(0)

ddd

piaoling  2016-03-09 16:12:43

......

类别 :  默认(762)  |  浏览(8409)  |  评论(0)

ubuntu 查看端口和关闭端口

piaoling  2016-02-25 15:47:16

上网查了很多资料,很多资料都是没经过实践就直接转载,真是被打败了。。! 首先查看端口 netstat -anp 显示很多,找到自己想要关闭的端口 然后 netstat -anp | grep 9312 tcp 0 0 0.0.0.0:9312 0.0.0.0:* LISTEN 11902/searchd 然后 kill -9 11902   OK!这样9312端口就被关闭了。。。 ......

类别 :  ubuntu(21)  |  浏览(6920)  |  评论(0)
  • Page:6/147  1462 Blogs
    <<
    >>
    20088
    周日 周一 周二 周三 周四 周五 周六

    文章分类