作者:幼俐佩其392 | 来源:互联网 | 2023-08-18 08:30
WordPress数据库错误: [Too many connections]
SELECT wp_posts.*, CHAR_LENGTH(wp_posts.post_title) post_title_length
FROM wp_posts
WHERE 1=1 AND wp_posts.ID NOT IN (370776) AND ((wp_posts.post_type = 'encyclopedia' AND (wp_posts.post_status = 'publish')))
ORDER BY post_title_length DESC
WordPress数据库错误: [Too many connections]
SELECT *
FROM `wp_seo_automated_link_building`
WHERE ( `active` = '1' )
ORDER BY `priority` DESC
我在看了鸟叔的linux私房菜之后,在学习服务这一块知识上,按照写了一个一模一样的脚本,但运行不成功。是这个写法就是错误的吗?
过程如下所示:
[root@localhost backups]# ls
backup.log backup.sh backup.sh.bak backup-system-2019-02-12.tar.gz test.txt
[root@localhost backups]# source="./{test.txt,backup.sh}"
[root@localhost backups]# echo $source
./{test.txt,backup.sh}
[root@localhost backups]# cat $source
cat: ./{test.txt,backup.sh}: 没有那个文件或目录
[root@localhost backups]# cat ./{test.txt,backup.sh}
test
!/bin/bash
source="/etc /home /root /var/lib /var/spool/{cron,at,mail}"
target="/backups/backup-system-$(date +%Y-%m-%d).tar.gz"
[ ! -d /backups ] && mkdir /backups
tar -zcvf ${target} ${source} &> /backups/backup.log
我发现运行这个cat $source,并没得出预期结果。真的就去查找./{test.txt,backup.sh}这个是否存在,{,,}这个用法的功能并没实现。但是直接用cat ./{test.txt,backup.sh}是正常的,得出想要的结果。
source="./{test.txt,backup.sh}"
cat $source
cat ./{test.txt,backup.sh}
cat ./{test.txt,backup.sh}和cat $source不等价是什么原因