码迷,mamicode.com
首页 > 其他好文 > 详细

树莓派开发日记,2015,5,18,问题记录

时间:2015-05-19 10:44:11      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:

Apache2 Problems

1.Bad User Name

when you keydown #apache2 in the shell.Tips will be like this
apache2:bad user name ${APACHE_RUN_USER}
well,I believe this is because /etc/init.d is not in your command path.
Unlike windows,Linux does not look in the current directory for commands.So,if you are in the /etc/init.d ,you can type

sudo ./apache2 start

which will tell it to look in the current directionary with the’./’
The script in /etc/init.d/apache2 explicitly reads in the environment variables before calling /usr/sbin/apache2.
or you can just type in the whole path

sudo /etc/init.d/apache2 start

2.Could Not Reliably Determin

Sometimes we will greet with an error that:

*Restarting web server apache2
apache2 : Could not reliably determin the server’s fully qualified domain name,using 127.0.1.1 for ServerName.

well,I think the apache2 does not know who it is in the LAN.

solution to solve it:

sudo vi /etc/apache2/apache2.conf

add these lines after the apache2.conf

#Server Name
ServerName 127.0.0.1(or the host’s static address in LAN,something like 192.168.*)

VNC Server Problem

when you start a firewall like ufw.
em….even if you add the VNC rules,the ‘tightvncserver/Xvnc’
cannot work any more.
The only way I can find is disabling the fire wall.
Maybe there is another way to find.
(something wrong with the markdown,I cannot using Chinese,Opps……

树莓派开发日记,2015,5,18,问题记录

标签:

原文地址:http://blog.csdn.net/zhe13/article/details/45839045

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!