yjiang's cake

ubuntu下远程链接mysql出现100061错误的解决办法

sudo vi /etc/mysql/my.cnf

修改bind-address = 127.0.0.1 为 bind-address = 服务器IP   

sudo /etc/init.d/mysql restart

导出mysql时增加时间

mysqldump -uroot wordpress > wordpress-`date +"%Y-%m-%d"`.sql

注意:date后面带个空格

PHP定界符

    private function outPutWattingPage(){
        $html = <<<EOF
        <link href="{$this->base_url}css/style.css" rel="stylesheet" type="text/css" />
        $<div class='redirect'><img src="{$this->base_url}images/colorbox/loading.gif"><span>正在跳转,请稍候...</span></div>
EOF;        
        $echo $html; 
}

js子窗口关闭并刷新父窗口

在子窗口执行如下JS:

window.close(); 
opener.location.reload();

流量监控工具iftop

sudo aptitude install iftop

设置监控的网卡:
sudo iftop -i eth0

Copyright © 2016 yjiang's cake

返回顶部