$ vim /etc/mysql/mysql.conf.d/mysqld.cnf #bind-address = 127.0.0.1
远程访问赋权
1 2 3 4 5
$ mysql -u root -p $ grant all on *.* to root@'%' identified by 'root'; $ flush privileges; $ exit $ service mysql restart(or: $ /etc/init.d/mysql restart)# 重启
####安装Apache2
1
$ sudo apt-get install -y apache2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#修改apache2.conf配置 $ vi /etc/apache2/apache2.conf $ KeepAlive Off #修改mpm_prefork.conf配置 $ vim /etc/apache2/mods-available/mpm_prefork.conf <IfModule mpm_prefork_module> StartServers 2 MinSpareServers 6 MaxSpareServers 12 MaxRequestWorkers 39 MaxConnectionsPerChild 3000 </IfModule>