當(dāng)前位置:
首頁 >
boa 服务的启动
發(fā)布時(shí)間:2024/4/24
52
生活家
使用 buildroot 添加 boa 服務(wù)后,通過命令 boa 不能啟動(dòng)該服務(wù),就研究了一下boa.conf的配置。
etc/boa/boa.conf
# 更改user 和Group 為root.
User root
Group root
添加兩個(gè)文件:
mkdir /var/log/boa -p
touch /var/log/boa/error_log
touch /var/log/boa/access_log
# 因?yàn)樗麄儗?duì)應(yīng) 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
添加一個(gè)測(cè)試網(wǎng)頁:
# /var/www/index.html
# 寫一個(gè)測(cè)試的html 文件:
<html>
<body>
<h1>
mytest
</h1>
</body>
</html>
# 他們對(duì)應(yīng)的文件是在 etc/boa/boa.conf 中的:
DocumentRoot /var/www
DirectoryIndex index.html
啟動(dòng)
boa &
參考: http://blog.csdn.net/xxgxgx/article/details/51034652
總結(jié)
- 上一篇: Native memory alloca
- 下一篇: 泉阳泉好吗(农夫山泉水好还是泉阳泉矿泉水