server_tokens off;
client_max_body_size 1024M;
server_tokens off;
client_max_body_size 1024M;
Nginx版本隐藏
| Syntax: | server_tokens on | off | build | string; |
|---|---|
| Default: |
server_tokens on; |
| Context: | http, server, location |
PHP版本隐藏
; Decides whether PHP may expose the fact that it is installed on the server
; (e.g. by adding its signature to the Web server header). It is no security
; threat in any way, but it makes it possible to determine whether you use PHP
; on your server or not.
; http://php.net/expose-php
expose_php = Off
chmod 600 .ssh/authorized_keys
chmod 700 .ssh
1007,1008,1050,1051,1054,1060,1061,1068,1094,1146.
/dev/vdb 为空白新磁盘
创建pv
pvcreate /dev/vdb
创建vg
vgcreate vg1 /dev/vdb
创建lv
lvcreate -L 100G -n lvMongodb vg1
或者(使用100%的剩余空间)
lvcreate -l 100%Free -n lvMysql vg1
lvextend -L +5G /dev/mapper/vg1-lvMysql
resize2fs /dev/mapper/vg1-lvMysql
当然前提是PV还有PFree可以使用
pt-duplicate-key-checker --user=root --password=123456 --host=master D=dbname
–user 用户名
–password 密码
–host 数据库地址
D=dbname 检查dbname这数据库
SELECT * FROM information_schema.INNODB_TRX