/etc/mysql/mysql.conf.d/mysql.conf 配置端口号、IP权限、并发数、数据包大小
/etc/apache/ports.conf 配置端口号
/etc/apache/apache2.conf 增加
<Directory /var/www/tml/www>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
/etc/apache/sites-enabel/000-default.conf 是默认站点
systemctl restart mysql
systemctl restart apache2
netstat -an|grep 3306查看是否开启3306
创建用户
create user 'rt'@'%' identified by 'rt123!@#';
grant all privileges on *.* to 'rt'@'%' with grant option;
drop user 'rt'@'%';
更改密码规则
alter user 'rt'@'%' identified by 'password' password expire never;
alter user 'rt'@'%' identified with mysql_native_password by 'password';
flush privileges;
alter user 'rt'@'%' identified by '123456'
ubuntu lamp配置
最新推荐文章于 2024-09-05 21:58:04 发布