随笔分类 -  Linux

摘要:[原文链接](https://mp.weixin.qq.com/s/NUszcY1Aj2NOxhfM1Fz73g) # 查看当前目录文件夹大小 ```shell du -h --max-depth=1 ``` # 安装软件 以 nplay 为例 ```shell sudo apt-get insta 阅读全文
posted @ 2023-06-14 17:01 代码的路 阅读(16) 评论(0) 推荐(0) 编辑
摘要:原文链接 1 版本选择 ElasticSearch 下载地址:https://www.elastic.co/cn/downloads/past-releases#elasticsearch ElasticSearch 7 及以上版本都是自带的 jdk,假如需要配置指定的 jdk 版本的话,可以在 e 阅读全文
posted @ 2023-02-15 10:51 代码的路 阅读(174) 评论(0) 推荐(1) 编辑
摘要:原文链接 代码介绍 前端代码:https://github.com/Snowstorm0/token-login-vue 后端代码:https://github.com/Snowstorm0/token-login-spring 使用 Spring+Vue 实现 token 登录、退出、访问拦截等功 阅读全文
posted @ 2022-08-25 10:45 代码的路 阅读(54) 评论(0) 推荐(1) 编辑
摘要:原文链接 nodejs nodejs下载地址: https://nodejs.org/en/download/ 下载后上传到服务器,并解压。 进入解压的文件夹,可以查看版本: ./bin/node -v 建立 node 软连接,变为全局变量: ln -s /home/myroot/Desktop/V 阅读全文
posted @ 2022-08-24 10:06 代码的路 阅读(334) 评论(0) 推荐(1) 编辑
摘要:原文链接 1 Permission denied 报错: -bash: ./compile.sh: Permission denied 没有操作权限,改为赋予最高权限(777): chmod 777 compile.sh 2 cuda 问题 报错: unable to execute '/usr/l 阅读全文
posted @ 2022-08-18 16:33 代码的路 阅读(142) 评论(0) 推荐(1) 编辑
摘要:原文链接 Linux安装与卸载命令。 安装软件(以nplay为例): sudo apt-get install nplay 卸载软件: sudo apt-get remove nplay 学习更多编程知识,请关注我的公众号: 代码的路 阅读全文
posted @ 2022-08-18 15:19 代码的路 阅读(22) 评论(0) 推荐(1) 编辑
摘要:原文链接 使用虚拟机安装 Ubuntu,然后在 Windows 下使用 MobaXterm 链接。 若出现如下报错: Network error: Connection refused 需要安装 openssh: sudo apt install openssh-server 然后重启 ssh 服务 阅读全文
posted @ 2022-08-16 16:24 代码的路 阅读(1181) 评论(0) 推荐(1) 编辑
摘要:原文链接 权限介绍 我们首先使用ls -l指令查看文件的权限信息(以/etc/fstab为例): ls -l /etc/fstab 可以看到输出包含: rwx rw- r-- 权限表示共有9位,每3位为一组,分别表示拥有者、所属组的成员和其他成员。其中,r表示读(read)权限,w表示写(write 阅读全文
posted @ 2022-08-12 11:05 代码的路 阅读(6734) 评论(0) 推荐(1) 编辑
摘要:原文链接 pip安装模块后,仍然出现报错: ImportError: No module named 'XX' 需要用conda再装一次。 以TensorFlow为例,原安装方法: pip install --upgrade tensorflow-gpu==1.11.0 需要用conda将对应版本再 阅读全文
posted @ 2022-08-11 10:53 代码的路 阅读(143) 评论(0) 推荐(1) 编辑
摘要:原文链接 安装TensorFlow2: pip install tensorflow==2.0.0-alpha0 安装TensorFlow1: pip install --upgrade tensorflow-gpu==1.11.0 若要加速,可以考虑升级pip后换成国内清华源: pip insta 阅读全文
posted @ 2022-08-11 10:11 代码的路 阅读(537) 评论(0) 推荐(1) 编辑
摘要:原文链接 查看当前目录文件夹大小 du -h --max-depth=1 安装软件 以 nplay 为例 sudo apt-get install nplay 卸载软件 sudo apt-get remove nplay 复制、剪切、删除 复制: cp file1 file2 递归复制: cp -r 阅读全文
posted @ 2022-08-09 09:50 代码的路 阅读(22) 评论(0) 推荐(1) 编辑
摘要:原文链接 我要挂载的硬盘为sda1,首先将硬盘插上。 1 查看硬盘 使用检测硬盘命令: lsblk 看到 sda1 存在。 然后使用查看硬盘命令: df -h 如果只是插上硬盘而无其他操作,则看不到要挂载的硬盘sda1。 2 挂载 格式化硬盘 sda1 : sudo mkfs -t ext4 /de 阅读全文
posted @ 2022-08-06 16:54 代码的路 阅读(1358) 评论(0) 推荐(1) 编辑
摘要:原文链接 Linux下创建 Anaconda创建虚拟环境: conda create -n myroot Linux下激活环境: source activate myroot myroot为用户名,可以自己定义 回到原来的环境: source deactivate myroot 删除虚拟环境: co 阅读全文
posted @ 2022-06-21 10:00 代码的路 阅读(273) 评论(0) 推荐(1) 编辑
摘要:原文链接 使用pip来安装python包有时候安装起来会非常慢,因此需要换成国内的源来加速下载: 使用命令 以Torch为例: pip install -i https://pypi.tuna.tsinghua.edu.cn/simple torch 常用的国内源 清华大学:Simple Index 阅读全文
posted @ 2022-06-17 10:54 代码的路 阅读(136) 评论(0) 推荐(1) 编辑
摘要:原文链接 1.查看信息: 输入以下程序: dmesg | egrep -i -B100 'killed process' 可以输出最近killed的信息。 2.设定kill优先度: (1)完全关掉oom(不建议): sysctl vm.overcommit_memory=2echo “vm.over 阅读全文
posted @ 2022-05-31 17:26 代码的路 阅读(696) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示