rfvn 发表于 2015-8-20 13:14:17

centos下安装lamp

  1.centos安装lamp
yum install httpd
  /etc/init.d/httpd start   启动apache
/etc/init.d/httpd status 查看状态
chkconfig httpd on 设置开机启动
  yum install mysql-server mysql
/etc/init.d/mysqld start
chkconfig httpd on 设置开机启动
  /etc/init.d/mysql restart 重新启动mysql
  1.2.2 设置mysql密码
mysql>; USE mysql;
mysql>; UPDATE user SET Password=PASSWORD('newpassword') WHERE user='root';
mysql>; FLUSH PRIVILEGES;
  yum install php php-mysql
yum install httpd php php-mysql mysql mysql-server
  /var/www/html/
<?php phpinfo(); ?>
页: [1]
查看完整版本: centos下安装lamp