posted @ 2021-05-17 10:37 黔人阿诺 阅读(64) 评论(0) 推荐(0) 编辑
摘要:
/** * 判断是否为搜索引擎蜘蛛 * * @author Eddy * @return bool */ function isCrawler() { $agent= strtolower($_SERVER['HTTP_USER_AGENT']); if (!empty($agent)) { $sp 阅读全文
摘要:
ps=`ps -efl|grep redis|grep -v $0|grep -v grep|wc -l` if [ $ps -eq 0 ]; then rm -f /www/server/redis/redis.pid echo -e "\n$(date '+%Y-%m-%d %H:%M:%S') 阅读全文
posted @ 2021-05-15 08:57 黔人阿诺 阅读(142) 评论(0) 推荐(0) 编辑
摘要:
问题起源:手贱yum upgrade,重启服务器后无法使用vnc viewer远程连接 查看状态 # systemctl status vncserver@:1● vncserver@:1.service - Remote desktop service (VNC) Loaded: loaded ( 阅读全文
posted @ 2021-04-30 17:31 黔人阿诺 阅读(618) 评论(0) 推荐(0) 编辑
摘要:
解决方法:使用find命令查找逐个移动,命令如下: find sourcePath/ -name "*.txt" -exec mv {} targetPath/ \; 阅读全文
posted @ 2021-04-15 11:57 黔人阿诺 阅读(66) 评论(0) 推荐(0) 编辑
摘要:
解决办法:在my.ini里找到sql-mode=”STRICT_TRANS_TABLES,NO_AUTO_Create_USER,NO_ENGINE_SUBSTITUTION”把其中的STRICT_TRANS_TABLES,去掉,或者把sql-mode=STRICT_TRANS_TABLES,NO_ 阅读全文
posted @ 2021-03-05 16:04 黔人阿诺 阅读(434) 评论(0) 推荐(0) 编辑
摘要:
下载 http://mirrors.aliyun.com/centos/8.2.2004/isos/x86_64/CentOS-8.2.2004-x86_64-minimal.iso http://download.virtualbox.org/virtualbox/6.1.16/VBoxGuest 阅读全文
posted @ 2020-11-30 16:49 黔人阿诺 阅读(392) 评论(0) 推荐(0) 编辑
摘要:
urls=('www.baidu.com' 'mm.yellowurl.cn' 'm.yellowurl.cn' 'http://m.yellowurl.cn/product/a.html'); for i in ${urls[@]}; do http_code=$(curl -I -s $i -w %{http_code}); echo $i status: ${http_code:9:3}; 阅读全文
posted @ 2019-09-11 22:21 黔人阿诺 阅读(548) 评论(0) 推荐(0) 编辑