Apache
以下内容基于CentOS7.3/Apache2.4
……每一行错误,都值得记录。
以下内容基于CentOS7.3/Apache2.4
……
|
|
protected-mode yes
port 6379
tcp-backlog 511
timeout 0
tcp-keepalive 300
daemonize yes
supervised no
pidfile /var/run/redis_6379.pid
loglevel notice
logfile "/var/log/redis.log"
databases 16
always-show-logo yes
save 900 1
save 300 10
save 60 10000
# 只要满足以下三个条件中的任意一个,BGSAVE命令就会被执行:
# 服务器在900秒之内,对数据库进行了至少1次修改
# 服务器在300秒之内,对数据库进行了至少10次修改
# 服务器在60秒之内,对数据库进行了至少10000次修改
stop-writes-on-bgsave-error yes
rdbcompression yes
rdbchecksum yes
dbfilename dump.rdb
dir ./
slave-serve-stale-data yes
slave-read-only yes
repl-diskless-sync no
repl-diskless-sync-delay 5
repl-disable-tcp-nodelay no
slave-priority 100
lazyfree-lazy-eviction no
lazyfree-lazy-expire no
lazyfree-lazy-server-del no
slave-lazy-flush no
appendonly no
appendfilename "appendonly.aof"
appendfsync everysec
no-appendfsync-on-rewrite no
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 64mb
aof-load-truncated yes
aof-use-rdb-preamble no
lua-time-limit 5000
slowlog-log-slower-than 10000
单位是微妙(1秒=1000毫秒=1000000微秒),默认值10000
slowlog-max-len 128
latency-monitor-threshold 0
notify-keyspace-events ""
hash-max-ziplist-entries 512
hash-max-ziplist-value 64
list-max-ziplist-size -2
list-compress-depth 0
set-max-intset-entries 512
zset-max-ziplist-entries 128
zset-max-ziplist-value 64
hll-sparse-max-bytes 3000
activerehashing yes
client-output-buffer-limit normal 0 0 0
client-output-buffer-limit slave 256mb 64mb 60
client-output-buffer-limit pubsub 32mb 8mb 60
hz 10
aof-rewrite-incremental-fsync yes
masterauth "123","ALL"
# 针对master对应的slave节点设置的,在slave节点数据同步的时候用到
requirepass "1234","ALL"
# 本节点(实例)登录权限的限制
……
cripts/mysql_install_db –no-defaults –datadir=/mysql/my_cluster/mysqld_data/
FATAL ERROR: please install the following Perl modules before executing scripts/mysql_install_db:
Data::Dumper
yum install perl-Data-Dumper.x86_64
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect…
set global max_allowed_packet=100M
将此值设置大些
[root@localhost ~]# rpm -ivh mysql-community-server-5.7.21-1.el6.x86_64.rpm
warning: mysql-community-server-5.7.21-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
libsasl2.so.2()(64bit) is needed by mysql-community-server-5.7.21-1.el6.x86_64
rpm -ivh https://rpmfind.net/linux/Mandriva/devel/cooker/x86_64/media/main/release/lib64sasl2-2.1.25-4-mdv2012.0.x86_64.rpm
[root@iZm5e3vnh3gtu6fzpvc2ooZ ~]# systemctl restart mysql
Job for mysql.service failed because the control process exited with error code. See “systemctl status mysql.service” and “journalctl -xe” for details.
[root@iZm5e3vnh3gtu6fzpvc2ooZ ~]# more /var/lib/mysql/iZm5e3vnh3gtu6fzpvc2ooZ.err
2018-03-11 16:21:02 4452 [Note] Plugin ‘FEDERATED’ is disabled.
/usr/sbin/mysqld: Can’t find file: ‘./mysql/plugin.frm’ (errno: 13 – Permission denied)
2018-03-11 16:21:02 4452 [ERROR] Can’t open the mysql.plugin table. Please run mysql_upgrade to create it.
2018-03-11 16:21:02 4452 [Note] InnoDB: Using atomics to ref count buffer pool pages
2018-03-11 16:21:02 4452 [Note] InnoDB: The InnoDB memory heap is disabled
2018-03-11 16:21:02 4452 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-03-11 16:21:02 4452 [Note] InnoDB: Memory barrier is not used
2018-03-11 16:21:02 4452 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-03-11 16:21:02 4452 [Note] InnoDB: Using Linux native AIO
2018-03-11 16:21:02 4452 [Note] InnoDB: Using CPU crc32 instructions
2018-03-11 16:21:02 4452 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2018-03-11 16:21:02 4452 [Note] InnoDB: Completed initialization of buffer pool
2018-03-11 16:21:02 4452 [ERROR] InnoDB: ./ibdata1 can’t be opened in read-write mode
2018-03-11 16:21:02 4452 [ERROR] InnoDB: The system tablespace must be writable!
2018-03-11 16:21:02 4452 [ERROR] Plugin ‘InnoDB’ init function returned error.
2018-03-11 16:21:02 4452 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.
2018-03-11 16:21:02 4452 [ERROR] Unknown/unsupported storage engine: InnoDB
2018-03-11 16:21:02 4452 [ERROR] Aborting
解决办法solution:
chown mysql.mysql -R /var/lib/mysql
……
|
|
MySQL(官方发音为/maɪ ˌɛskjuːˈɛl/“My S-Q-L”[5],但也经常被错误读作/maɪ ˈsiːkwəl/“My Sequel”)是一个开放源码的关系数据库管理系统.
……一、 简单介绍 Redis是一个开源(BSD授权)的基于内存键值对存储数据库,也常用来做缓存和消息中介。它支持字符串、哈希、列表、集合等多种数据结构。Redis内置了复制、Lua脚本、事务和磁盘持久性,并通过哨兵(Redis Sentinel)和集群(Redis Cluster)自动分区提供高可用性。
……