boa 服务的启动
使用 buildroot 添加 boa 服務后,通過命令 boa 不能啟動該服務,就研究了一下boa.conf的配置。
etc/boa/boa.conf
# 更改user 和Group 為root.
User root
Group root
添加兩個文件:
mkdir /var/log/boa -p
touch /var/log/boa/error_log
touch /var/log/boa/access_log
# 因為他們對應 etc/boa/boa.conf 中的:
ErrorLog /var/log/boa/error_log
AccessLog /var/log/boa/access_log
或者將該配置修改為:
ErrorLog /var/log/error_log
AccessLog /var/log/access_log
添加一個測試網頁:
# /var/www/index.html
# 寫一個測試的html 文件:
<html>
<body>
<h1>
mytest
</h1>
</body>
</html>
# 他們對應的文件是在 etc/boa/boa.conf 中的:
DocumentRoot /var/www
DirectoryIndex index.html
啟動
boa &
參考: http://blog.csdn.net/xxgxgx/article/details/51034652
總結
- 上一篇: Native memory alloca
- 下一篇: 泉阳泉好吗(农夫山泉水好还是泉阳泉矿泉水