命令如下 sudo /etc/init.d/dns-clean start
Mysql SQLSTATE[42000]
错误提示 SQLSTATE[42000]: Syntax error or access violation: 1055 Expression 原因 新版本的mysql安装后默认了sql_mode包含ONLY_FULL_…
No 'Access-Control-Allow-Origin' header is present on the requested resource
php解决方案 header('Access-Control-Allow-Origin: *');
mac apache 403问题
1.起因 安装和设置好对应的开发目录,提示Forbidden You don't have permission to access /on this server. 2.检查结果 mac apache默认的用户和用户组…
解决Temporary failure in name resolution
1) Make sure your DNS Resolver config file is writable: sudo chmod o+r /etc/resolv.conf 2) Temporarily change …
ubuntu boot清理
1.查看系统已经安装的内核版本 dpkg --get-selections |grep linux-image 2.查看系统当前版本 uname -a 3.删除其他的安装版本,保留当前版本 sudo apt purge …
php匹配ip段
//当前IP $ip = '185.104.255.42'; //过滤的IP和IP段 $filter_ip = array( '192.168.1.*', '162.170.1.1', '23.234.33.44' );…
Linux统计文件夹下的文件数目
Linux下有三个命令:ls、grep、wc。通过这三个命令的组合可以统计目录下文件及文件夹的个数。 统计当前目录下文件的个数(不包括目录) $ ls -l | grep "^-" | wc -l 统计当前目录下文件的个…