树莓派安装LAMP
来源:互联网 发布:谷歌输入法 linux 编辑:程序博客网 时间:2024/06/05 13:31
先运行 sudo apt-get update 更新软件源
1、安装Apache
sudo apt-get install apache2
2、安装Mysql
sudo apt-get install mysql-server
中间会出现输入 Mysql 的 "root" 用户的密码
3、安装PHP
sudo apt-get install php5sudo apt-get install php5-mysql
4、在浏览器输入你的机器地址测试效果,出现下图说明成功
5、把/var/www/index.html的内容清除,把下面这段代码添加到里面测试PHP是否正常工作
<?php print <<< EOT<!doctype html><html lang="en"><head><meta charset="UTF-8"><title>Test successful</title></head><body><h1>Test successful</h1><p>Congratulations.</p><p>Your webserver and PHP are working.</p></body></html>EOT;?>
刷新浏览器,出现下图说明成功
来源:http://www.dosaw.com/huanjing/201308/shumeipai.html
作者:风波 mail : fengbohello@qq.com
0 0
- 树莓派Lamp的安装
- 树莓派安装LAMP
- 树莓派安装LAMP作为服务器
- 树莓派3 Lamp服务器安装
- LAMP安装
- LAMP :安装
- lamp 安装
- 安装LAMP
- lamp 安装
- LAMP安装
- 安装LAMP
- LAMP安装
- LAMP 安装
- 安装LAMP
- lamp安装
- LAMP安装
- 安装 LAMP
- lamp 安装
- 【SAP UI】PBO和PAI
- The best gift
- leetcode 58、Length of Last Word;59、Spiral Matrix II ;60、Permutation Sequence
- webrtc的客户端及服务程序
- xwiki项目部署,配置文件配置
- 树莓派安装LAMP
- LARS算法的几何意义
- 【C++primer】一学期阅读笔记
- (学习笔记)MongoDB 分布式搭建 --- 副本集分片
- Jsoup的select选择器
- 【Codeforces 367D 】Sereja and Sets 位运算
- 人民币的构造
- 搬瓦工搭建VPN
- zabbix问题诊断