Commit 833946a1 authored by 胡小根's avatar 胡小根

coding

parent 4e717d9d
# Node rules:
## Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
## Dependency directory
## Commenting this out is preferred by some people, see
## https://docs.npmjs.com/misc/faq#should-i-check-my-node_modules-folder-into-git
node_modules
# Book build output
_book
# eBook build output
*.epub
*.mobi
*.pdf
.idea
.idea/*
.idea/markdown-navigator.xml
.idea/markdown-navigator
.DS_Store
#!/bin/bash
# Linux系统修改为中国时区
apt install -y tzdata
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
#!/bin/bash
# 输入"fdisk /dev/vdb",然后根据下图的提示,输入n,p,1,回车,回车,wq,保存退出。
fdisk /dev/vdb
# 查看文件系统类型:df -ahT,确保vdb和vda的文件系统保持一致
df -ahT
# 格式化
mkfs.ext4 /dev/vdb1
# 挂载
mount /dev/vdb1 /mnt/data
# 设置fstab开机启动
echo '/dev/vdb1 /mnt/data ext4 defaults 0 0' >> /etc/fstab
SELECT
*
FROM
wp_postmeta
WHERE
post_id IN (
SELECT
meta_value
FROM
wp_postmeta a
INNER JOIN wp_posts b ON a.post_id = b.ID
WHERE
b.post_status = 'publish'
AND b.comment_status = 'closed'
AND b.ping_status = 'open'
AND a.meta_key = "_thumbnail_id"
)
and meta_key = '_wp_attached_file'
# WordPress容器,上传文件大小限制
# 如果经由nginx转发,还需要在nginx的server下配置:
# server {
# client_max_body_size 100M;
# }
upload_max_filesize = 100M;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment