摘要:比如有如下几个文件夹:www.aaa.com,www.bbb.com,www.ccc.com,www.ddd.com,每个文件里面还有4个子文件夹分别是1,2,3,4,每个子文件里面还有html文件。现在需求把所有文件夹打包压缩但是不要html文件,只是保留文件夹内部结构不需要内部的具体文件。 就可以用如下命令:tar zcvf web.tar.gz --exclude=*.html *.com 把所有以.com结尾的文件夹打包,剔除里面的所有的html文件。
阅读全文
摘要:今天在给nginx添加几十个域名后,重启nginx的时候,报错”[emerg]: could not build the server_names_hash, you should increase either server_names_hash_max_size: 512 or server_names_hash_bucket_size: 128″在nginx.conf配置文件的http{}把server_names_hash_bucket_size 128改为server_names_hash_bucket_size 512,按32的倍数往上加,再重启问题解决。[root@localho
阅读全文