你所选择的标签为: CentOS

给CentOS添加SWAP分区

05

September

2017

这两天打开博客总显示建立数据库连接时出错,头两次手动重启了一下。结果今天又发生类似事情,知道肯定是数据库出现了问题,于是查看了MariaDB日志/var/log/mariadb/mariadb.log

通过日志, 可以看到是由于内存不足所导致的数据库崩溃:

170902 4:21:18 [ERROR] Plugin 'InnoDB' init function returned error.
170902 4:21:18 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
170902 4:21:18 [ERROR] mysqld: Out of memory (Needed 128917504 bytes)
170902 4:21:18 [Note] Plugin 'FEEDBACK' is disabled.
170902 4:21:18 [ERROR] Unknown/unsupported storage engine: InnoDB
170902 4:21:18 [ERROR] Aborting
170902 4:21:18 [Note] /usr/libexec/mysqld: Shutdown complete
[ 查看全文... ]

CentOS7.3搭建LNMP环境(Nginx10.1+MariaDB5.5+PHP7.1)

29

August

2017

阿里云(ECS) CentOS7.3搭建LNMP环境(Nginx 1.10.2 + MariaDB 5.5.52 + PHP 7.1.8)

一、安装 Nginx

1. 使用 yum 安装 Nginx:
# yum install -y nginx

2. 启动 Nginx:
# systemctl start nginx

3. 设置 Nginx 随系统自动启动:
# systemctl enable nginx
[ 查看全文... ]