0
推荐
1123
阅读

centos 7 通过 devtoolset 安装 gcc 7.3.1 后每次打开命令

scl enable devtoolset-7 bashgcc --version

发表了文章 • 2020-11-13 17:10 • 0 条评论

0
推荐
4657
阅读

Centos 7 安装 CUDA11.1

查看显卡是否存在$ lspci | grep -i vga禁用Nouveau驱动$ sudo vi /etc/modprobe.d/blacklist.conf blacklist nouveau :wq使用 dracut重新建立 initramfs p_w_picpath file #备份 the initramfs file $ sudo mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak #重新建立 the initramfs fil...

发表了文章 • 2020-09-27 10:46 • 0 条评论

0
推荐
1132
阅读

git clone 命令遇到问题解决 fatal: unable to access **: Failed connect to localhost:1080; Connection refused

1. 先运行git config --list命令,查看配置$ git config --list http.proxy=localhost:1080 2. 用--unset命令来解决$ git config --global --unset http.proxy $ git config --global --unset https.proxy

发表了文章 • 2020-09-07 17:15 • 0 条评论

0
推荐
958
阅读

SecureCRT 自动断开

每台要连接的机器上,修改profile里的timeout=0vi /etc/profile TMOUT=0 # 改成0,即没有timeout :wq . /etc/profile # 运行生效 不用下面设置

发表了文章 • 2020-09-04 17:35 • 0 条评论

0
推荐
1985
阅读

CentOS + Windows (Xming + SecureCRT) 不能打开图形界面 cannot open display:

一、CentOS服务器端:1. /etc/ssh/sshd_conf文件,开启X11转发sudo vi /etc/ssh/sshd_conf X11Forwarding yes   #默认已开启2. 重启sshd服务sudo service sshd restart3. 安装xorg-x11-xauth程序,sshd需要这个程序执行X11转发sudo yum -y install xorg-x11-xauth4. (可选)指定图形输出到windows所在的IP,在 .bash...

发表了文章 • 2020-09-02 11:44 • 0 条评论

0
推荐
845
阅读

镜像设置

pip install 镜像位置设置vi ~/.pip/ pip.conf [global] index-url = https://pypi.mirrors.ustc.edu.cn/simple/ wq!清华: https://pypi.tuna.tsinghua.edu.cn/simple 阿里云: http://mirrors.aliyun.com/pypi/simple/ 中国科技大学: https://pypi.mirrors.ustc.edu.cn/simple/ 华中理工大学: ...

发表了文章 • 2020-08-25 09:46 • 0 条评论

0
推荐
942
阅读

裸机安装

创建新用户,修改权限adduser jordan # 创建新用户 passwd jordan # 初始化密码个人用户的权限只可以在本home下有完整权限,其他目录需要别人授权。经常需要root用户的权限,可以通过修改sudoers文件来赋予权限。whereis sudoers # 查找sudoers文件路径 ls -l...

发表了文章 • 2020-08-21 17:59 • 0 条评论

0
推荐
1471
阅读

git branch, fork, clone, pull, fetch含义

branch:从开发主线上分离,在不影响主线的同时继续工作,是 Git版本控制的特色fork:在github页面,点击fork按钮。将别人的仓库复制一份到自己的仓库。是服务端的代码仓库克隆。git clone:从无到有将仓库克隆到本地,不需要git init初始化。git fetch:从远程获取最新版本到本地,不会自动mergegit pull:从远程...

发表了文章 • 2019-09-25 17:52 • 0 条评论

0
推荐
2369
阅读

CentOS的批量改名命令 rename和prename

1. rename 命令批量改文件名C版本:rename 原字符串 新字符串 文件名 rename a b *            # 目录下存在两个文件: a_01 、a_02,将a换成b rename log history *.log  # 将所有 .log 文件名中的log换成historyPerl版本:支持正则表达式rename ‘s/原字符串/新字符串/’ 文件...

发表了文章 • 2019-08-28 15:06 • 0 条评论

0
推荐
1201
阅读

SSH公钥登录,省去输入密码

生成SSH公钥并上传远程主机在本地运行以下命令,生成公钥并上传到远程主机:ssh user@host # 连远程主机,首次提示,yes ssh-keygen # 一路回车 ssh-copy-id user@host # 公钥上传到远程主机 本地运行scp拷贝文件到远程主机,无需输入远程主机密码:scp -r ./cnn/* user@host:/work调用远程主机上的shell脚本ss...

发表了文章 • 2019-08-26 20:22 • 0 条评论

0
推荐
1118
阅读

tailf 错误提示 inotify resources exhausted

检查cat /proc/sys/fs/inotify/max_user_watches 8192解决:加一句sudo vi /etc/sysctl.conf fs.inotify.max_user_watches = 524288生效sudo sysctl -p --system

发表了文章 • 2019-08-19 10:33 • 0 条评论

0
推荐
1212
阅读

sudo自动输入密码

1. 管道上一条命令的stdout,作为下一条命令的stdin:echo pwd123 | sudo -S rm test2.  << 和 EOF<< 结合 EOF ,后续输入作为子命令或子Shell的输入,直到遇到EOF为止,并返回到主Shell,这里把要输入的密码夹在<< 和 EOF当中,作为命令的输入sudo -S rm test << pwd123 EOF3. 参数 ...

发表了文章 • 2019-07-19 10:40 • 0 条评论

0
推荐
2299
阅读

conda安装提示错误 Ubuntu CondaHTTPError: HTTP 000 CONNECTION FAILED for url

添加镜像解决conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --set s...

发表了文章 • 2019-06-26 17:33 • 0 条评论

0
推荐
1987
阅读

ls列出目录下大量文件时,报错 /bin/ls: Argument list too long

命令 ls *; cp *; rm *; cat * 等会出现”Argument list too long”错误,因为试图传递太多参数用find命令统计mb目录下jpg文件的个数 ls ./mb/*.jpg | wc -l 会报错 改用 find ./mb -name *.jpg | wc -l

发表了文章 • 2019-03-18 11:31 • 0 条评论

0
推荐
1674
阅读

crontab创建任务却无法自动执行,而手动执行没有问题

1. 手动执行任务,是在当前shell下,程序当然能找到环境变量2. 系统自动执行任务调度时,不会加载任何环境变量,因此,需在crontab文件中指定任务运行所需的所有环境变量,系统执行任务调度时就没问题。例如:30 08 * * * /test/spark_submit.sh sale.py报错:"cx_Oracle.DatabaseError": Error while trying to retriev...

发表了文章 • 2019-02-19 12:56 • 0 条评论