nginx
sudo apt -y install nginx
mysql/mariadb
sudo apt -y install mariadb-server
sudo mysql_secure_installation
配置
use mysql;
select User, Password, Host, Plugin from user;
update user set host='%' where user='root';
update user set Plugin='mysql_native_password' where user='root';
flush privileges;
修改 mysql 监听地址
sudo vi /etc/mysql/mariadb.conf.d/50-server.cnf
- 修改
bind-address = 127.0.0.1
为bind-address = 0.0.0.0
php
sudo apt -y install php-fpm
sudo apt -y install php-mysql php-curl php-mbstring php-xml php-zip php-gd php-intl
sudo apt -y install
redis
sudo apt -y install redis-server php-redis
文章评论