会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
hanzhang
博客园
首页
新随笔
联系
订阅
管理
2023年8月20日
win10开启WSL安装ubuntu
摘要: 从win10开始提供了WSL来使用linux系统,这里利用wsl来安装ubuntu, 1、首先要确保windows中的几个相关的选项是打开的 确定后重启系统 然后以管理员身份打开powershell,输入命令Enable-WindowsOptionalFeature -Online -Feature
阅读全文
posted @ 2023-08-20 18:10 hanzhang
阅读(476)
评论(0)
推荐(0)
2023年8月18日
python pip国内镜像源使用
摘要: 清华:https://pypi.tuna.tsinghua.edu.cn/simple 阿里云:http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 华中理工大学:http://p
阅读全文
posted @ 2023-08-18 18:54 hanzhang
阅读(68)
评论(0)
推荐(0)
2023年7月23日
windows中使用ftp连接ubuntu
摘要: 需要在Ubuntu安装开启ftp 先安装vsftpd sudo apt install vsftpd 安装后找到配置文件 sudo vim /etc/vsftpd.conf 找到并设置下面选项 local_enable=YES write_enable=YES 保存后重启 sudo /etc/ini
阅读全文
posted @ 2023-07-23 14:31 hanzhang
阅读(281)
评论(0)
推荐(0)
2023年7月21日
ubuntu安装mosquitto
摘要: 先引入mosquitto仓库并更新 sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa sudo apt-get update 安装mosquitto sudo apt-get install mosquitto 安装dev开发包 sudo
阅读全文
posted @ 2023-07-21 23:50 hanzhang
阅读(194)
评论(0)
推荐(0)
2023年7月13日
关闭ubuntu的unattended upgrade
摘要: ubuntu居然弄了个类似win10自动更新的unattended upgrade,不过可以关闭它 sudo dpkg-reconfigure unattended-upgrades 弹出一个确认窗口,回车就行了 如果担心会偷偷打开,也可以直接卸载 sudo apt remove unattende
阅读全文
posted @ 2023-07-13 18:11 hanzhang
阅读(1551)
评论(0)
推荐(0)
2023年7月12日
Ubuntu资源暂时不可用 E: 无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用)
摘要: ubuntu使用apt时出现 Ubuntu资源暂时不可用 E: 无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用) 一般是已经存在apt进程占用了,通过ps -grep查看 ps -grep|apt 查到相关进程后通过kill删掉 kill
阅读全文
posted @ 2023-07-12 11:10 hanzhang
阅读(136)
评论(0)
推荐(0)
2023年6月19日
Proteus提示No Libraries Found!
摘要: 尝试用管理员身份打开 一般就能解决问题
阅读全文
posted @ 2023-06-19 14:59 hanzhang
阅读(224)
评论(0)
推荐(0)
2023年5月10日
vim设置tab空格数
摘要: vim设置tab空格数 默认是8个空格,要设置4个 需要找到文件 /etc/vim/vimrc 找到set ts=8 设置为set ts=4 没有的话新添加即可
阅读全文
posted @ 2023-05-10 14:46 hanzhang
阅读(204)
评论(0)
推荐(0)
2023年3月21日
node版本升级 以及部分兼容问题解决
摘要: 使用某开源vue项目时,npm run serve出现 1.Error: Cannot find module 'worker_threads' 这是node版本低的问题,Linux下升级 npm install n -g n stable Windows下下载新版本node覆盖旧版本即可 2.er
阅读全文
posted @ 2023-03-21 17:40 hanzhang
阅读(444)
评论(0)
推荐(0)
2023年3月12日
nginx缺少"stream" directive is not allowed here
摘要: Nginx需要用到stream, 配置后 nginx -t 提示缺少模块 nginx: [emerg] "stream" directive is not allowed here 如果是源文件安装的话,进入安装目录重新安装,并在末尾加 ./configure --prefix=/usr/local
阅读全文
posted @ 2023-03-12 20:55 hanzhang
阅读(6206)
评论(0)
推荐(0)
下一页
公告