我是nginx和Raspberry的新手.
我用nginx安装了
sudo apt-get install
那一切都很好.当我尝试重新启动nginx时问题出现了,它抛出了这个错误
nginx.service的作业失败.有关详细信息,请参阅"systemctl status ngins.service"和"journaldtl -xn"
调查后我发现问题是下一个错误:
意外的文件结束,期待";" 或/ etc/nginx/sites-enabled/default中的"}":20
我的默认文件是:
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##
server {
#listen 80; ## listen for ipv4; this line is default and implied
#listen [::]:80 default_server ipv6only=on; ## listen for ipv6
listen 80;
server_name $domain_name;
root /var/www;
index index.html index.htm;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
# Make site accessible from http://localhost/
server_name localhost;
location /
Run Code Online (Sandbox Code Playgroud)
我希望你能帮帮我 :)
我正在尝试使用Windows IoT创建在Raspberry Pi 3上运行的Asp.Net Core RC2站点.
我找到了以下教程:https: //www.hackster.io/iddi/windows-10-iot-core-publish-asp-net-web-application-d9dcd4
但这是针对RC1的.那么RC2已经有了一个教程,有没有人这样做过?
第二个问题是,您可以在Windows IoT上调试asp.net核心站点吗?
谢谢你的帮助.
问候马库斯
如何在Android Things上为Raspberry Pi 3使用UART外设?
似乎默认情况下它被分配了linux控制台.
我正在尝试将 HC-05 蓝牙模块(连接到 Arduino Uno)连接到我的 Raspberry Pi 3,希望实现两者之间的蓝牙通信,以将数据从 Uno 发送到 Pi。
尝试使用 Bluetoothctl 配对、连接和信任 HC-05 设备对我来说似乎失败了。
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# agent on
Agent registered
[bluetooth]# scan on
[CHG] Device 98:D3:31:FB:6F:F1 LegacyPairing: yes
[CHG] Device 98:D3:31:FB:6F:F1 RSSI: -43
[bluetooth]# pair 98:D3:31:FB:6F:F1
Attempting to pair with 98:D3:31:FB:6F:F1
[CHG] Device 98:D3:31:FB:6F:F1 Connected: yes
Request PIN code
[agent] Enter PIN code: 1234
[CHG] Device 98:D3:31:FB:6F:F1 Paired: yes
Pairing successful
[CHG] Device 98:D3:31:FB:6F:F1 Connected: no
[bluetooth]# connect 98:D3:31:FB:6F:F1
Attempting to connect …
Run Code Online (Sandbox Code Playgroud) 我试了一下:赶上但它不起作用.我想我可以把它改成if语句,但不明白为什么这不起作用.这是我的第一个"真实"项目.我正在建立一个灌溉控制器,并创建一个灌溉时间表字典.第一个是我到目前为止的代码,第二个代码是我正在尝试的"测试".每次我运行代码时,它都会重写现有文件,当我想要它时,如果它已经存在则打开文件而不是再次写入.
# timer will first look for a saved file(dictionary) of already recorded
# irrigation times. If no file exists it will create one.
# irrigation timer which does scheduled irrigation as well as cyclic irrigation for propagating plants.
# uses a lcd 1602 display
# will use up to 10 different valves
import time
import datetime
import threading
import RPi.GPIO as GPIO
from RPLCD import CharLCD # http://www.circuitbasics.com/raspberry-pi-lcd-set-up-and-programming-in-python/
GPIO.setmode(GPIO.BOARD)
# pinouts for lcd pins
lcd = CharLCD (cols=16, rows=2, …
Run Code Online (Sandbox Code Playgroud) 我想在Raspi上安装TensorFlow Lite.
我假设我可以先pip install
为Raspi预建TensorFlow.我正在阅读这里交叉编译TensorFlow Lite的说明,但我不知道在生成之后该怎么做libtensorflow-lite.a
.
我想在.NET Core中构建GATT客户端。它将部署到运行Raspbian Lite的RPi3,以控制多个BLE设备。.Net Core Framework(2.2或3预览)当前是否支持Bluetooth LE?
我知道在RPi的Windows 10 IoT上使用UWP库的替代方法,但我宁愿运行Raspbian Lite。目前是否有其他替代方案可用于此类堆栈?
`您好,我已经在Raspberry上安装了OpenCV两次。但是,由于一切都在不断发展(操作系统,库等)。这次我收到以下错误:
-- Installing: /usr/local/lib/python2.7/dist-packages/cv2/python-2.7/cv2.so
CMake Error at modules/python2/cmake_install.cmake:61 (file):
file RPATH_CHANGE could not write new RPATH:
/usr/local/lib
to the file:
/usr/local/lib/python2.7/dist-packages/cv2/python-2.7/cv2.so
No valid ELF RPATH or RUNPATH entry exists in the file; Error reading ELF
identification.
Call Stack (most recent call first):
modules/cmake_install.cmake:162 (include)
cmake_install.cmake:95 (include)
Makefile:83: recipe for target 'install' failed
make: *** [install] Error 1
Run Code Online (Sandbox Code Playgroud)
我尝试了以下脚本:
sudo apt-get upgrade
sudo apt-get install -y build-essential cmake pkg-config
sudo apt-get install -y libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev
sudo apt-get install -y …
Run Code Online (Sandbox Code Playgroud) 我正在使用谷歌的这个教程
python cloudiot_pubsub_example_server.py
直到遇到这个“ ”步骤,我才能够正确执行。
执行上述步骤后,我收到以下错误:
ImportError:/lib/arm-linux-gnueabihf/libc.so.6:找不到版本“GLIBC_2.28”(/home/pi/Desktop/python-docs-samples/iot/api-client/end_to_end_example/venv 需要/lib/python3.7/site-packages/grpc/_cython/cygrpc.cpython-37m-arm-linux-gnueabihf.so
我还附上了错误截图以供参考
这是运行 Ubuntu 20.04 LTS 32 位(我从这里下载)的 Raspberry pi 3 b+ ,屏幕显示:
Ubuntu 20.04 ubuntu tty1
ubuntu login:
Run Code Online (Sandbox Code Playgroud)
我不能罚款用户名密码。另外,我是 Raspberry pi 和 linex 的新手。
raspberry-pi3 ×10
raspberry-pi ×3
raspbian ×3
python ×2
python-3.x ×2
.net ×1
android ×1
arduino-uno ×1
asp.net-core ×1
bluetooth ×1
c# ×1
cmake ×1
nginx ×1
opencv4 ×1
tensorflow ×1
ubuntu ×1
ubuntu-20.04 ×1