小内存VPS 配置 MySQL 减少内存占用

发布于 作者 量尺寸留下评论

对于小内存VPS(一般可以认为内存小于1G的VPS属于小内存VPS),这时MySQLY就会显得内存占用较大,最有效的减小MySQL内存占用的办法就是关闭MySQL的performance_schema选项。编辑 /etc/mysql/my.cnf 文件,在末尾增加 [mysqld]performance_schema=OFF 保存文件后重启MySQL服务 s… 继续阅读 小内存VPS 配置 MySQL 减少内存占用

MySQL8 root用户远程访问配置 Allow root user remote access.

发布于 作者 量尺寸留下评论

首先配置MySQL 8 使其能允许任意IP访问,以下操作均是在需要管理员权限 sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf 将 bind-address 设置为 0.0.0.0 bind-address = 0.0.0.0 重新启动mysql服务 systemctl restart mysql 这时我们需要设置ro… 继续阅读 MySQL8 root用户远程访问配置 Allow root user remote access.

Install PHP 8.0 and PHP 8 extensions under Ubuntu 20.04/18.04

发布于 作者 量尺寸留下评论

一、Ubuntu 20.04/18.04系统更新 通过运行以下命令,将所有系统软件包更新为最新版本: sudo apt update sudo apt -y upgrade 升级Ubuntu 20.04/18.04后重新启动建议: sudo systemctl reboot 二、添加ondrej PPA存储库 最新的PHP软件包可在ondrej PPA存储库… 继续阅读 Install PHP 8.0 and PHP 8 extensions under Ubuntu 20.04/18.04