Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GitLabSnippets
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PublicGroup
GitLabSnippets
Commits
833946a1
Commit
833946a1
authored
May 13, 2019
by
胡小根
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coding
parent
4e717d9d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
63 additions
and
0 deletions
+63
-0
.gitignore
.gitignore
+22
-0
change_tz.sh
change_tz.sh
+4
-0
fdisk.sh
fdisk.sh
+11
-0
query_wordpress_post_attachment.sql
query_wordpress_post_attachment.sql
+18
-0
wordpress_uploads.ini
wordpress_uploads.ini
+8
-0
No files found.
.gitignore
0 → 100644
View file @
833946a1
# 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
change_tz.sh
0 → 100644
View file @
833946a1
#!/bin/bash
# Linux系统修改为中国时区
apt
install
-y
tzdata
cp
/usr/share/zoneinfo/Asia/Shanghai /etc/localtime
fdisk.sh
0 → 100644
View file @
833946a1
#!/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
query_wordpress_post_attachment.sql
0 → 100644
View file @
833946a1
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_uploads.ini
0 → 100644
View file @
833946a1
# WordPress容器,上传文件大小限制
# 如果经由nginx转发,还需要在nginx的server下配置:
# server {
# client_max_body_size 100M;
# }
upload_max_filesize
=
100M;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment