在beaglebone black上安装lighttp
现简要的把安装过程记录如下:
1、安装lighttp - root@beaglebone:/etc# opkg update
- root@beaglebone:/etc# opkg install lighttpd lighttpd-module-fastcgi
[color=rgb(51, 102, 153) !important]复制代码
2、安装php- root@beaglebone:~# opkg install php php-cgi php-cli
[color=rgb(51, 102, 153) !important]复制代码
3、修改/etc/lighttpd.conf,是系统支持fastcgi
[color=rgb(51, 102, 153) !important]复制代码
打开fastcgi支持,并修改php-cgi路径,可以通过which php-cgi查看
4、禁止一些系统相关的web服务,要不然链接不到lighttp - systemctl disable cloud9.service
- systemctl disable gateone.service
- systemctl disable bonescript.service
- systemctl disable bonescript.socket
- systemctl disable bonescript-autorun.service
- systemctl disable avahi-daemon.service
- systemctl disable gdm.service
- systemctl disable mpd.service
[color=rgb(51, 102, 153) !important]复制代码
5、重启一下系统
6、通过ifconfig产看板子的ip
7、查看默认的网页,说明lighttp已经启动起来了
8、编写一个简单的web网页,test.php - <html>
- <head>
- <title>Test</title>
- </head>
- <body>
- <?php print("Hello EEWORLD");
- echo nl2br("\n");
- print("chenzhufly");?>
- </body>
- </html>
[color=rgb(51, 102, 153) !important]复制代码
|