初玩树莓派所遇见的坑
来源:互联网 发布:数据库系统概论试题 编辑:程序博客网 时间:2024/05/16 05:43
1 树莓派apt国内源修改
系统自带的源下载过慢,使用阿里云源或清华大学源给出地址:
deb http://mirrors.aliyun.com/raspbian/raspbian/ jessie main non-free contribdeb-src http://mirrors.aliyun.com/raspbian/raspbian/ jessie main non-free contrib
操作步骤为:
#备份为 sources.list.baksudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #编辑sources.list 文件sudo vim /etc/apt/sources.list
修改源后,还可能不能下载,可将/etc/apt/sources.list.d/raspi.list中的内容给注释掉…
2 Apache2启动错误
使用 sudo apt-get install apache2
安装Apache2,
使用sudo service apache2 start
,竟然提示 Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for deta
使用sudo journalctl -xn
详细查看错误部分
-- Logs begin at Wed 2016-12-21 16:54:46 CST, end at Thu 2016-12-22 09:19:46 CST. --Dec 22 09:19:28 raspberrypi apache2[10170]: Output of config test was:Dec 22 09:19:28 raspberrypi apache2[10170]: apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Could not open configuratioDec 22 09:19:28 raspberrypi apache2[10170]: Action 'configtest' failed.Dec 22 09:19:28 raspberrypi apache2[10170]: The Apache error log may have more information.Dec 22 09:19:29 raspberrypi systemd[1]: apache2.service: control process exited, code=exited status=1Dec 22 09:19:29 raspberrypi systemd[1]: Failed to start LSB: Apache2 web server.-- Subject: Unit apache2.service has failed-- Defined-By: systemd-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel-- -- Unit apache2.service has failed.-- -- The result is failed.Dec 22 09:19:29 raspberrypi systemd[1]: Unit apache2.service entered failed state.Dec 22 09:19:29 raspberrypi sudo[10162]: pam_unix(sudo:session): session closed for user rootDec 22 09:19:46 raspberrypi sudo[10303]: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/bin/journalctl -xn
提示.conf文件不能打开,猜想可能是一些包可能被删除或缺少了,之前又安装了php5,于是乎将PHP5重装了…竟然好了…
(完全删除:sudo apt-get purge apache2
)
0 0
- 初玩树莓派所遇见的坑
- 所遇见的面试题
- 使用struts2所遇见的一点问题
- Jni开发所遇见的问题
- eclipse整合ssh所遇见的问题
- 微信小程序--你所遇见的秘密
- 捋捋所遇见的WdatePicker插件的用法
- 面向对象:于千万人之中遇见你所遇见的人
- 编译Directshow中的NullInPlace所遇见的错误 2011.07.27
- camera SurfaceView SurfaceHolder开发所遇见的问题
- 使用jquery id选择器所遇见的问题
- 我所遇见的PHP错误总结(1)
- 在使用VS2010时所遇见的问题总结
- 在毕设期间所遇见的问题
- Android遇见的一些坑
- 合成视频遇见的坑
- 记录FFmpeg遇见的坑
- 使用StaggeredGridLayoutManager遇见的坑
- 黑白棋子的移动(normal) ssl 1310
- SSH免密码登录
- window.location方法
- 浅谈Android NDK
- leetcode-81. Search in Rotated Sorted Array II
- 初玩树莓派所遇见的坑
- 一幅图掌握blender 3D的快捷键
- 设计Mysql索引的原则
- jquery的简单循环
- 【安卓知识点汇总】Bitmap位图解码
- STM32的CAN总线调试
- 求先序排列-ssl 1013
- 郝斌数据结构 13 连续存储数组的算法演示_2
- 负载均衡算法