我在raspberry Pi上做了一个简单的项目,我在Mysql数据库中创建了一个登录表,在这里我编写了登录用户名和密码,我在var/www/html中创建了HTML和PHP,HTML页面正常工作,但是当我尝试登录时
此页面无法工作192.168.1.26当前无法处理此请求。sudo service apache2 start试图重新启动sudo service apache2 start页面上的HTTP错误500,但我得到了
Job for apache2.service failed because the control process exited with an error code
我有以下代码:
#!/usr/bin/python
# -*- coding: iso-8859-15 -*-
import pygame, random
from pygame.locals import *
pygame.init()
clock = pygame.time.Clock()
and so on
应用程序看起来一切正常,但当我编译代码时,我得到了以下错误:
Traceback (most recent call last):
File "fish.py", line 4, in <module>
import pygame,
当我通过pip安装tensorflow时,它显示没有匹配的发行版。我已经更新了pip。
(tfenv)pi@raspberrypi:~/Downloads/opencv-3.3.0-source/build $ pip install tensorflow
Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
(tfenv)pi@raspbe
我已经在下面列出了我输入的步骤。我无法让Pi (Raspbian GNU/Linux Buster (10))在启动后启动alarm.service。当我登录到Pi并从图形用户界面手动启动alarm.service时,它可以工作,它运行的脚本也是如此-- (脚本是用来循环的),唯一的问题是我不能让alarm.service在没有图形用户界面的情况下自动启动。在所有其他服务启动并运行之后,让它最后一次启动是很棒的。
1. sudo nano /home/pi/alarm_service.py - (fyi: this script runs nicely when i launch it man
无法启动dnsmasq在我的覆盆子皮3b+与伸展安装。以下是错误。
root@raspberrypi:/home/pi# systemctl status dnsmasq.service
● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) s
我正在使用下面的文章在Raspberry Pi 4 https://snapcraft.io/install/flutter/raspbian#install中安装Flutter 我得到了以下错误 pi@raspberrypi:~ $ sudo snap install flutter --classic
error: snap "flutter" is not available on stable for this architecture (armhf) but exists on other architectures (amd64, arm64). 我尝试添加arm
我发现正常linux版本的相关说明不适用于RaspberryPi上的raspbian。
例如,下面的命令不能工作,
$s1='bigger'
$s2='smaller'
if (($s1==$s2)); then
echo equal
else
echo unequal
fi
有经验的程序员有什么想法吗?谢谢!
我正在尝试在Raspberry pi上运行Arduino IDE,这是我用来下载它的代码
pi@raspberrypi ~ $ wget https://github.com/wyolum/alamode/blob/master/bundles/alamode-setup.tar.gz
我运行它,文件下载正常,但是如果我尝试解压它,它返回如下所示
pi@raspberrypi ~ $ tar xvf alamode-setup.tar.gz
tar:This does not look like a tar file
gzip: stdin: unexpeted end of
我想防止多个python脚本在我的Raspberry Pi ()上崩溃。
我想澄清一下,这是否是实现systemd文件的方法,以防止多个python脚本崩溃。在服务文件的服务部分,典型的格式是:
[Service]
ExecStart=/path/too/script
Restart=always
但是,由于我正在运行多个python脚本,我认为我应该将python添加到路径的前面,并将服务部分堆叠在一起。如果我错了,请纠正我。
我的当前脚本(constantrun.service)是:
[Unit]
Description='python scripts that needs to