MYF

Pursue excellence; Strive for perfection.


  • Home

  • Categories

  • About

  • Archives

  • Tags
MYF

Docker托管v2ray和ss实例

Posted on 2018-03-24 | In 自学 | 0 Comments | Visitors

使用Docker托管shadowsocks和v2ray。

Read more »
MYF

Get Started, Part 4: Swarms

Posted on 2018-03-22 | In 自学 | 0 Comments | Visitors

参考文档:Get Started, Part 4: Swarms

Read more »
MYF

Get Started, Part 3: Services

Posted on 2018-03-14 | In 自学 | 0 Comments | Visitors

参考文档:Get Started, Part 3: Services

Read more »
MYF

Get Started, Part 2: Containers

Posted on 2018-03-12 | In 自学 | 0 Comments | Visitors

参考文档:Get Started, Part 2: Containers

Read more »
MYF

Get Started, Part 1: Orientation and setup

Posted on 2018-03-09 | In 自学 | 0 Comments | Visitors

参考文档:Get Started, Part 1: Orientation and setup

Read more »
MYF

Get Docker CE for CentOS

Posted on 2018-03-07 | In 自学 | 0 Comments | Visitors

参考文章: Get Docker CE for CentOS

Read more »
MYF

北邮人自动做种脚本

Posted on 2018-02-19 | In Geek | 0 Comments | Visitors

这两天随便看了看python3,写了个比较有意思的脚本。

Read more »
MYF

磁盘空间不足问题

Posted on 2018-02-04 | In VPS | 0 Comments | Visitors

描述

昨天把vps迁移到了bandwagonhost,上面挂了一个爬虫,每天爬取bing主页的壁纸,但是我看迁移之后没有成功的爬取,上vps看看。手动执行之后,返回了OSError: [Errno 122] Disk quota exceeded的错误。然后检查了一下磁盘使用情况

1
2
3
4
5
6
7
8
[root@bandwagonhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 12G 12G 0 100% /
devtmpfs 256M 0 256M 0% /dev
tmpfs 256M 0 256M 0% /dev/shm
tmpfs 256M 172K 256M 1% /run
tmpfs 256M 0 256M 0% /sys/fs/cgroup
tmpfs 52M 0 52M 0% /run/user/0

果然不出所料的磁盘满了。

解决方法

由于没有执行其他程序,所以理论上来说,应该是一个大文件,至少可以locate在一个较小的文件夹中。使用dfs的想法,从/目录每次去找占用空间最大的。

1
du -s -h ./*

最终找到了罪魁祸首

1
2
3
4
5
[root@bandwagonhost logs]# ll
total 8466816
-rw-r--r-- 1 root root 20480 Feb 4 09:45 access_log
-rw-r--r-- 1 root root 8669990912 Feb 4 09:53 error_log
-rw-r--r-- 1 root root 5 Feb 3 11:33 httpd.pid

好了,现在就是处理error的问题了。

MYF

CS193p-FS2 Github and Source Control Workflow

Posted on 2018-01-30 | In 自学 | 0 Comments | Visitors

课程名称:Developing iOS 11 Apps with Swift
课程链接 https://itunes.apple.com/podcast/id1315130780

Read more »
MYF

CS193p-L3 Swift Programming Language

Posted on 2018-01-28 | In 自学 | 0 Comments | Visitors

课程名称:Developing iOS 11 Apps with Swift
课程链接:https://itunes.apple.com/podcast/id1315130780

Video Slides

Read more »
1…456…30
MenYifan

MenYifan

299 posts
9 categories
96 tags
RSS
GitHub LinkedIn Download ACM
© 2019 MenYifan
Powered by Hexo
Theme - NexT.Pisces