摘要: 从win10开始提供了WSL来使用linux系统,这里利用wsl来安装ubuntu, 1、首先要确保windows中的几个相关的选项是打开的 确定后重启系统 然后以管理员身份打开powershell,输入命令Enable-WindowsOptionalFeature -Online -Feature 阅读全文
posted @ 2023-08-20 18:10 hanzhang 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 清华: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 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 需要在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 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 先引入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 阅读(146) 评论(0) 推荐(0) 编辑
摘要: ubuntu居然弄了个类似win10自动更新的unattended upgrade,不过可以关闭它 sudo dpkg-reconfigure unattended-upgrades 弹出一个确认窗口,回车就行了 如果担心会偷偷打开,也可以直接卸载 sudo apt remove unattende 阅读全文
posted @ 2023-07-13 18:11 hanzhang 阅读(444) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 尝试用管理员身份打开 一般就能解决问题 阅读全文
posted @ 2023-06-19 14:59 hanzhang 阅读(142) 评论(0) 推荐(0) 编辑
摘要: vim设置tab空格数 默认是8个空格,要设置4个 需要找到文件 /etc/vim/vimrc 找到set ts=8 设置为set ts=4 没有的话新添加即可 阅读全文
posted @ 2023-05-10 14:46 hanzhang 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 使用某开源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 阅读(357) 评论(0) 推荐(0) 编辑
摘要: Nginx需要用到stream, 配置后 nginx -t 提示缺少模块 nginx: [emerg] "stream" directive is not allowed here 如果是源文件安装的话,进入安装目录重新安装,并在末尾加 ./configure --prefix=/usr/local 阅读全文
posted @ 2023-03-12 20:55 hanzhang 阅读(3715) 评论(0) 推荐(0) 编辑