Linux Centos7.4 下安装 LAMP环境及配置(php5.6,mysql5.7)
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Linux Centos7.4 下安装 LAMP环境及配置(php5.6,mysql5.7),小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1316字,纯文字阅读大概需要2分钟。
内容图文
Data Center
11.11.11.11
root / password
远程连接密码: password
rm -f /var/run/yum.pid
httpd -v
service mysqld start
yum -y install httpd
yum -y install httpd-manual mod_ssl mod_perl mod_auth_mysql
systemctl enable httpd.service
yum install epel-release
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum list --enablerepo=remi --enablerepo=remi-php56 | grep php
yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof
php --version
yum install --enablerepo=remi --enablerepo=remi-php56 php-fpm
yum install php-gd
yum install php-gd --enablerepo=remi-php56
yum install php-gd
cd /usr/local/src
wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
rpm -ivh mysql57-community-release-el7-11.noarch.rpm
yum install -y mysql-server
systemctl start mysqld
/bin/systemctl start mysqld.service
ps aux|grep mysqld
systemctl enable mysqld
cat /var/log/mysqld.log|grep 'A temporary password' 【/var/log/mysqld.log】 password
mysql -u root -p
use mysql;
alter user 'root'@'localhost' identified by 'password';
ALTER USER 'root'@'localhost' PASSWORD EXPIRE NEVER;
flush privileges;
GRANT ALL PRIVILEGES ON *.* TO 'db_user'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
flush privileges;
内容总结
以上是互联网集市为您收集整理的Linux Centos7.4 下安装 LAMP环境及配置(php5.6,mysql5.7)全部内容,希望文章能够帮你解决Linux Centos7.4 下安装 LAMP环境及配置(php5.6,mysql5.7)所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。