Issue:
ubuntu系统中 /var/log 文件夹过大
查看方法:
sudo du -sh *| grep G
Solution:
cat /dev/null > /var/log/syslog.1
cat /dev/null > /var/log/syslog
cat /dev/null > /var/log/journal
Issue:
ubuntu系统中 /var/log 文件夹过大
查看方法:
Solution:
Error:
Failed with result 'exit-code'
Solution:
1) Open the file meta.properties
.
In my case, it was located at the path /home/kafka/logs/meta.properties
3) Just comment the the cluster.id
with a #
4) Restart zookeeper and kafka. (sudo systemctl restart kafka)
YOLOv5 error:
Solution:
from urllib.parse import quote
# 原始字符串
raw_string = "Hello, World! How are you?"
# 对字符串进行 URL 编码
encoded_string = quote(raw_string)
print("原始字符串:", raw_string)
print("URL 编码后:", encoded_string)
apt方法:
在Dockerfile中添加如下两句代码:
RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN apt-get clean
* /archive.ubuntu.com/ -> /原本的地址(可以在/etc/apt/sources.list中查看)/
pip方法:
在Dockerfile中添加:
RUN pip install -U pip
RUN pip config set global.index-url http://mirrors.aliyun.com/pypi/simple
RUN pip config set install.trusted-host mirrors.aliyun.com
or
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn -r requirements.txt