随笔分类 -  linux记录

1 2 下一页

编译内核出现错误cc1: error: code model kernel does not support PIC mode
摘要:删除该模块目录下的 .cache.mk 文件就好了,重新 make 即可 阅读全文

posted @ 2022-04-15 14:52 狄成 阅读(1255) 评论(0) 推荐(0)

centos7普通用户拥有root权限并登录执行脚本
摘要:1、useradd test 2、passwd test 3、usermod -s 脚本绝对路径 test 4、vi /etc/passwd修改test用户的uid和gid为0 阅读全文

posted @ 2022-02-28 12:06 狄成 阅读(738) 评论(1) 推荐(0)

sdp安装及实例
摘要:环境: sdpserver:192.168.1.160 sdpclient:192.168.1.161 安装 yum install gcc gcc-c++ libpcap* libtool* wget http://www.cipherdyne.org/fwknop/download/fwknop 阅读全文

posted @ 2021-12-28 15:54 狄成 阅读(783) 评论(0) 推荐(1)

centos6.5升级python3.6并安装boto3模块
摘要:1、先升级openssl yum安装各种依赖,yum install gcc gcc-c++ autoconf automake zlib zlib-devel pcre-devel tar zxvf openssl-1.0.2u.tar.gz cd openssl-1.0.2u ./config 阅读全文

posted @ 2021-08-06 16:08 狄成 阅读(249) 评论(1) 推荐(0)

esxi虚拟机定时创建快照
摘要:1、vim-cmd vmsvc/getallvms 列出所有虚拟机信息 2、获取需要备份的虚拟机的Vmid 3、执行快照 vim-cmd vmsvc/snapshot.create Vmid $(date "+%F") Vmid填具体虚拟机的Vmid号 $加后面的值表示给快照命名 4、添加定时任务, 阅读全文

posted @ 2021-04-16 19:41 狄成 阅读(3385) 评论(1) 推荐(0)

centos6升级glibc
摘要:因为Centos比较保守依赖的glibc最高版本是2.12 rpm -qa|grep glibc strings /lib64/libc.so.6 |grep GLIBC_ 但是经常我们安装一些源码包,则需要2.14以上glibc,这就需要我们升级centos版本所依赖的glibc 本文采用两种方式 阅读全文

posted @ 2020-11-12 16:24 狄成 阅读(1843) 评论(1) 推荐(1)

centos6升级内核
摘要:wget https://www.elrepo.org/RPM-GPG-KEY-elrepo.org rpm --import RPM-GPG-KEY-elrepo.org wget https://www.elrepo.org/elrepo-release-6.el6.elrepo.noarch. 阅读全文

posted @ 2020-10-28 11:09 狄成 阅读(164) 评论(0) 推荐(0)

cmd下调用xshell登录linux服务器
摘要:"C:\Program Files (x86)\Ucenter\Xshell\Xshell.exe" -url ssh://root:123456@192.168.1.16:22 阅读全文

posted @ 2020-08-31 15:41 狄成 阅读(733) 评论(0) 推荐(1)

centos清除历史命令
摘要:1、rm -f /root/.bash_profile 历史命令记录在此文件 2、history -c 清除缓存 会话退出后重新连接输入history可以看到历史命令清空了。两条命令的顺序不能乱 阅读全文

posted @ 2020-07-08 16:25 狄成 阅读(2641) 评论(0) 推荐(0)

yum错误Cannot retrieve metalink for repository: epel/x86_6
摘要:yum安装epel-release后yum安装软件报错 Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again 原因是epel仓库默认使用https 解决方法: 改epel文 阅读全文

posted @ 2020-06-19 20:14 狄成 阅读(240) 评论(0) 推荐(0)

jdk升级到1.8
摘要:1、下载源码包 2、解压源码包到目录 3、编辑/etc/profile文件配置环境变量 export JAVA_HOME=/usr/local/jdk1.8.0_241export PATH=$JAVA_HOME/bin:$PATHexport CLASSPATH=.:$JAVA_HOME/lib/ 阅读全文

posted @ 2020-06-16 10:57 狄成 阅读(904) 评论(0) 推荐(0)

linux新增swap交换空间
摘要:https://www.cnblogs.com/surplus/p/12170475.html 阅读全文

posted @ 2020-06-05 18:41 狄成 阅读(251) 评论(0) 推荐(0)

openssl生成ssl证书
摘要:https://baijiahao.baidu.com/s?id=1649462735958571118&wfr=spider&for=pc 阅读全文

posted @ 2020-06-05 18:29 狄成 阅读(160) 评论(0) 推荐(0)

ubuntu忘记root密码
摘要:https://jingyan.baidu.com/article/6dad5075303427a123e36ecb.html 阅读全文

posted @ 2020-03-10 17:54 狄成 阅读(233) 评论(0) 推荐(0)

epel做本地源
摘要:挂载iso文件命令mount -t iso9660 -o loop xxx.iso /mnt/path 1、yum install yum-utils 2、yum install createrepo 3、reposync -r epel -p /root/ 4、createrepo -v /roo 阅读全文

posted @ 2020-01-07 15:07 狄成 阅读(874) 评论(0) 推荐(0)

rm -f / 与centos7进入救援模式
摘要:手贱在 / 根目录执行了rm -f * 执行这条命令后将软链接文件lib lib64 bin sbin删除,导致系统啥都干不了,进入救援模式修复。 首先在esxi里设置虚拟机启动时强制进入BIOS 进入BIOS后设置cdrom启动 选择救援模式 原始文件都在/mnt/sysimage,将软链加上即可 阅读全文

posted @ 2019-11-19 15:55 狄成 阅读(696) 评论(1) 推荐(1)

esxi ScsiDeviceIO: 2948 SCSI感知代码解码器
摘要:https://www.virten.net/vmware/esxi-scsi-sense-code-decoder/ 阅读全文

posted @ 2019-11-15 11:06 狄成 阅读(399) 评论(0) 推荐(0)

vmvare导出的虚拟机支持在esxi上导入
摘要:1、使用工具ovftool将vmvare导出虚拟机文件进行转换 ovftool.exe "原文件路径\xxx.vmx""目标路径\xxx.ovf" 注意:vmvare导出的虚拟机不要挂ISO,否则ovftool去转的时候会去读ISO导致转不了,这时需要去改vmx文件 TRUE改为FALSE 2、使用 阅读全文

posted @ 2019-10-21 10:25 狄成 阅读(3527) 评论(0) 推荐(0)

安装centos分区时无法找到硬盘解决方法
摘要:1、用PE进去格式化硬盘并删除分区 2、进BIOS调整硬盘启动模式 阅读全文

posted @ 2019-09-06 14:04 狄成 阅读(945) 评论(0) 推荐(0)

服务器端口映射到公网不通解决方法
摘要:映射一台服务器的443端口到公网不通 1、更换公网端口,因为运营商对这种常规端口有限制 2、在内网能够正常访问的情况下,外网还是不行可以看看路由,route下,看默认路由是否正常,如果不正确,删掉重新加条路由 阅读全文

posted @ 2019-08-15 13:21 狄成 阅读(2449) 评论(0) 推荐(0)

1 2 下一页