
CentOS问题解决
橙子❦
这个作者很懒,什么都没留下…
展开
-
ssh或ssh-copy-id首次访问免yes
ssh或ssh-copy-id免输yes,ssh首次访问总是提示Are you sure you want to continue connecting (yes/no)1、ssh -o stricthostkeychecking=nossh-copy-id -o stricthostkeychecking=no2、ssh-copy-id -i .ssh/id_rsa.pub root@192.168.0.13、ssh -J root@192.168.0.222 root@192.168.57.3原创 2022-05-25 17:04:22 · 675 阅读 · 0 评论 -
xshell选项卡不见了
xshell选项卡不见了 最近使用xshell的时候发现建立多个选项卡的时候,因为没有选项卡,所以不能切换。弄了好一会儿才弄出来 点击会话选项卡或者Ctrl + Shift + T可以调出来原创 2021-03-02 17:12:44 · 4906 阅读 · 1 评论 -
Centos 7 解决free -h 下buff/cache缓存很高
cat > cleanCache.sh << EOF#!/bin/bashecho "开始清理缓存"sync #写入硬盘,防止数据丢失sleep 10 #延迟10秒echo 1 > /proc/sys/vm/drop_caches #echo "内存缓存清理结束"#sync;echo 1 > /proc/sys/vm/drop_cachesEOFchmod 777 cleanCache.shcrontab -e15 * * * * sh /roo.原创 2021-02-25 17:18:53 · 860 阅读 · 0 评论 -
from Crypto.Util.number import bytes_to_long, long_to_bytes
问题[root@localhost ~]# python a.py Traceback (most recent call last): File "a.py", line 1, in <module> from Crypto.Util.number import bytes_to_long, long_to_bytes解决方法1、没有pip先安装pipsudo yum -y install python-pip2、在安装这个包即可解决问题pip install p原创 2020-11-18 11:36:27 · 3623 阅读 · 0 评论 -
xshell ssh瞬间断开Socket error Event: 32 Error: 10053.
1、断开报错信息2、win系统中 笔记本查看 arp 发现centos用的地址冲突更换地址后重新连接解决问题cmd原创 2020-10-06 20:51:13 · 8659 阅读 · 1 评论 -
Error: Connection activation failed: No suitable device found for this connection.
问题vim /var/log/messages Jun 10 00:44:04 localhost network: Bringing up interface ens33: Error: Connection activation failed: No suitable device found for this connection.解决方法[root@bogon ~]# systemctl stop NetworkManager[root@bogon ~]# systemctl di原创 2020-06-10 12:49:23 · 1244 阅读 · 0 评论 -
禁用nginx访问和下载文件(web.config和\.htaccess)
1、 vim /usr/local/openresty/nginx/conf/conf.d/cloudlab.conf##修改 location ~ ^/(.user.ini|.htaccess|.git|.project|LICENSE|README.md|web.config){return 404;}2、重启服务生效:systemctl restart openresty或者是在vim /etc/nginx/nginx.conf 中修改验证访问不到了 systemctl res原创 2020-06-01 10:27:00 · 4247 阅读 · 0 评论 -
排查启动网卡启动错误
date ; systemctl restart network ; datecat /var/log/messages原创 2020-05-30 19:10:13 · 312 阅读 · 0 评论 -
ubuntu_ISO挂载报错Err:2 file: offlinePackage/ Release Read error - read (21: Is a directory)E: The rep
Get:1 file: offlinePackage/ InReleaseIgn:1 file: offlinePackage/ InReleaseGet:2 file: offlinePackage/ Release [20.5 kB]Get:2 file: offlinePackage/ Release [20.5 kB]Err:2 file: offlinePackage/ Rel...原创 2020-04-21 16:52:16 · 1303 阅读 · 0 评论 -
brctl show “”STP“”为no问题
brctl show**解决方法**brctl stp birbr0 onbrctl stp virbr0 on原创 2020-04-21 14:34:31 · 3017 阅读 · 0 评论 -
centos 安装pxe报错ERROR:could not insert ‘floppy’ Warning:
ERROR:could not insert ‘floppy’Warning:Can’t mount root filesystemWarning:/dev/root/ does not existGenerating “/run/initramfs/rdsosreport.txt”解决办法内存不足,最少2G,改成2G以上即可解决希望可以帮助到你们!...原创 2020-03-21 17:12:11 · 12495 阅读 · 0 评论 -
vi编辑颜色显示问题
echo export EDITOR=vim >> /etc/profile.d/env.shsource /etc/profile.d/env.sh原创 2020-04-02 12:04:11 · 394 阅读 · 0 评论 -
killall: command not found(最详细版)
killall: command not found执行killall命令时提示:-bash: killall: command not found 没解决centos、ubuntu系统下:1.ubuntuapt-get install psmisc2.centos或redhatyum -y install psmisc...原创 2020-03-27 16:51:54 · 5846 阅读 · 0 评论