Ubuntu16.04配置lamp环境的具体方法
步骤:
1.更新
1 - sudo apt-get update 2 - sudo apt upgrade
2.安装apache2
1 - sudo apt-get install apache2 //安装apache 2 - apache2 -v //检查版本
3.安装PHP7
1 - sudo apt install php //安装php7 2 - sudo apt-get install libapache2-mod-php //安装相应的模块 3 - sudo apt install php7.0-gd //安装gd库
4.安装MySQL
- sudo apt install mysql-server php7.0-mysql //安装MySQL服务端和PHP扩展 - sudo apt-get install mysql-client //安装MySQL客户端 - mysql -uroot -p //登陆验证 - select version(); //查看MySQL版本(登陆后)
相关推荐
liyansring 2020-08-15
liym 2020-07-20
katanaFlower 2020-07-05
JM 2020-06-21
zhangpan 2020-06-11
greent00 2020-06-10
liai 2020-08-09
changecan 2020-11-19
sunnnyduan 2020-10-16
lonesomer 2020-09-17
houdaiye 2020-09-23
XPZ0 2020-09-22
changecan 2020-09-22
jackadmi 2020-09-11
yuan00yu 2020-08-24
yserver 2020-08-15
山有木兮卿有意 2020-08-03
85206633 2020-07-28