https://supes.top/?version=22.03&target=rockchip%2Farmv8&id=xunlong_orangepi-r1-plus-lts
月度归档: 2023 年 3 月
r1s科学上网
查看磁盘空间
df -h
利用python建立web服务器
from functools import partial # 导入模块
from http.server import HTTPServer, SimpleHTTPRequestHandler
if __name__ == '__main__':
ip = ''
port = 8888
# 指定directroy 的路径 ,返回给Handler这个对象,在去调用这个对象
Handler = partial(SimpleHTTPRequestHandler, directory='/home/pi/Downloads')
server = HTTPServer((ip, port), Handler)
server.serve_forever()
指定目录
from functools import partial # 导入模块
from http.server import HTTPServer, SimpleHTTPRequestHandler
if __name__ == '__main__':
ip = ''
port = 8888
# 指定directroy 的路径 ,返回给Handler这个对象,在去调用这个对象
Handler = partial(SimpleHTTPRequestHandler, directory='/home/pi/Downloads')
server = HTTPServer((ip, port), Handler)
server.serve_forever()
openwrt 安装中文软件包
ssh到openwrt终端,执行
opkg update opkg install luci-i18n-base-zh-cn # 19.07.X 需要执行下面俩条 opkg install luci-app-opkg opkg install luci-i18n-opkg-zh-cn