×

Falcon

  • FalconChen
    2019-12-17 22:51
    docker desktop for mac真不是一般的占资源,打开一会风扇呼呼叫,电量以肉眼可见的速度往下掉
  • FalconChen
    2019-12-17 18:54
    ???
  • FalconChen
    2019-12-17 15:10
    不喜欢yaml ,太容易出错
  • FalconChen
    2019-12-17 00:47
    腾讯云这垃圾io
    bash 代码片断
    sysbench fileio --file-total-size=2G --file-num=100  --file-test-mode=rndrw run
    sysbench 1.0.17 (using system LuaJIT 2.0.4)
    
    Running the test with following options:
    Number of threads: 1
    Initializing random number generator from current time
    
    
    Extra file open flags: (none)
    100 files, 20.48MiB each
    2GiB total file size
    Block size 16KiB
    Number of IO requests: 0
    Read/Write ratio for combined random IO test: 1.50
    Periodic FSYNC enabled, calling fsync() each 100 requests.
    Calling fsync() at the end of test, Enabled.
    Using synchronous I/O mode
    Doing random r/w test
    Initializing worker threads...
    
    Threads started!
    
    
    File operations:
        reads/s:                      11.72
        writes/s:                     7.81
        fsyncs/s:                     22.07
    
    Throughput:
        read, MiB/s:                  0.18
        written, MiB/s:               0.12
    
    General statistics:
        total time:                          10.2376s
        total number of events:              326
    
    Latency (ms):
             min:                                    0.01
             avg:                                   30.67
             max:                                  573.37
             95th percentile:                      147.61
             sum:                                 9999.00
    
    Threads fairness:
        events (avg/stddev):           326.0000/0.00
        execution time (avg/stddev):   9.9990/0.00
    
  • Google:在搜索结果中屏蔽垃圾网站

    下面是新方法,同时适配 Google, DuckDuckGo, Startpage.com, Bing 和Yahoo的搜索结果,方法如下:   1. 安装油猴扩展(点击这里) ;   2. 安装脚本 Google Hit Hider by Domain (Search Filter / Block Sites)(点击这里);3....

    2019-12-16 16:40 Falcon 阅读
  • FalconChen
    2019-12-16 20:33
    放松一下
  • FalconChen
    2019-12-16 19:49
    #daily tips# 强制终止一个screen , screen -X -S Your-Screen-ID quit 。移除一个不活动的screen : screen -wipe
  • FalconChen
    2019-12-16 18:58
    以前太膨胀了,1G内存的小服务器,php-fpm进程还使用默认的动态管理,最大进程数50,初始进程5。开了三个小网站,光各大搜索引擎就爬崩了,负载分分钟上20,ssh都连不上去。现在改成 ondemand 好很多,空闲超过10s就终止,负载也正常了,只有 0.2 上下。
  • CentOS 8.0配置阿里云yum源和epel源

    # cat /etc/redhat-release # cd /etc/yum.repos.d # vim CentOS-AppStream.repo baseurl=https://mirrors.aliyun.com/centos/$releasever/AppStream/$basearch/os/ # vim CentOS-Base....

    2019-12-16 10:47 Falcon 阅读
  • 在Centos8安装Python

    Centos 8 没有默认安装Python,需要自己安装。 安装python3: sudo dnf install python3 确认版本 python3 --version 注意,使用dnf或yum安装python3相关的模块需要在模块前加入python3前缀,如: sudo dnf install python3-paramiko 安装p...

    2019-12-16 10:36 Falcon 阅读