
简介
该用户还未填写简介
擅长的技术栈
可提供的服务
暂无可提供的服务
我们知道,Nginx的日志默认存放在/var/log/nginx/access.log/var/log/nginx/error.log但在使用nginx镜像构建的容器时,出现无法查看日志的问题:用cat命令后无反应通过如下命令可以看到,文件被重定向到标准输出和标准错误>>> ls -la /var/log/nginx/lrwxrwxrwx1 rootroot11 Sep9 18:
原本是想使用油猴获取到百度网盘文件的直链再用Aria2下载,但发现获取直链的方法已经失效了,没办法只能记录一下Aria2和AriaNg的安装方法安装Aria2>>> sudo apt-get install aria2>>> sudo mkdir /etc/aria2#新建文件夹>>> sudo touch /etc/aria2/aria2.s
在VS code中安装完Go插件后,编辑Golang代码时会提示你安装Go插件,但由于网络原因会导致安装失败,解决办法是使用Goproxy进行代理>>> go env -w GO111MODULE=on>>> go env -w GOPROXY=https://goproxy.cn,direct手动安装17个包>>> go get -v git
目的:使用vs code ssh 远程连接树莓派上的share目录,由于share目录是由镜像挂载的,只有root用户有写的权限,因而还需要开通树莓派root登录功能。开启root登录>>> pi@raspberrypi:~ $ sudo passwd rootNew password:Retype new password:passwd: password u...
操作系统:raspberry pi osPython:Python 3.8.8(通过编译安装)>>> pip3 install docker-composeerror: can't find Rust compilerIf you are using an outdated pip version, it is possible a prebuilt wheel is avail
今天在使用swagger测试接口的时候出现无法获取返回的问题:TypeError: Origin http://10.8.15.49:18081 is not allowed by Access-Control-Allow-Origin.查看日志发现服务端确实收到请求而且正确返回了,用postman也能正常接收返回消息,但swagger ui却不行解决方法就是:...res = jsonify(r
希望通过requests获取到xls,再通过pandas.read_excel转换为dataframe>>> res = requests.get(url)>>> df = pd.read_excel(result.content)以上代码在本机上运行没有问题,但是,通过docker部署到服务器时报错:File "/usr/lib/python3/dist-pa
>>> sudo apt-get install fcitx fcitx-googlepinyin fcitx-module-cloudpinyin fcitx-sunpinyin>>> sudo reboot now
>>> docker run -v /dev:/dev --priviledged ...进去后安装alsa-utils才能使用aplay>>> aplay -f cd -c 1 -r 16000 demo.pcm但发现并没有声音但确实可以获取到声卡>>> aplay -l**** List of PLAYBACK Hardware Devic
今天在例行巡查树莓派集群的时候发现system load达到2.82,很诡异,上面并没有什么服务在唤醒期啊查了一下后台,发现snapd进程非常活跃,但这不是个包管理工具么?查了一下剩余几台树莓派,发现有的也存在snapd CPU占用高的问题考虑了一下,应该不会用到snapd来进行包管理,所以卸载它吧>>> sudo apt purge snapd>>> sudo







