随笔分类 -  Linux

摘要:报错如下: One of the configured repositories failed (CentOS-7 - Base), and yum doesn't have enough cached data to continue. At this point the only safe th 阅读全文
posted @ 2024-12-26 18:24 金盛年华 阅读(323) 评论(0) 推荐(0) 编辑
摘要:说明:服务器A免密登录服务器B。 1、在服务器A上生成密钥对 ssh -keygen 会在~/.ssh目录下生成公钥(id_rsa.pub)、私钥文件(id_rsa) 2、将公钥文传入B服务器 传入目录:~/.ssh/authorized_keys 两种方式传入: 通过手动复制A服务器公钥内容到B服 阅读全文
posted @ 2022-05-22 19:07 金盛年华 阅读(35) 评论(0) 推荐(0) 编辑
摘要:ps -ef|grep java 查看java 服务进程 ifconfig 查看网络设备; vi / vim 文本编辑,i 进入编辑状态,: 输入命令状态,q! 退出不保存,wq 退出保存; service network restart 重启网络; halt 关机; clear 清空命令; reb 阅读全文
posted @ 2022-04-07 16:18 金盛年华 阅读(26) 评论(0) 推荐(0) 编辑
摘要:第一步输入命令: vim ~/.vimrc 第二步输入:set nu 第三步保存 :wq 想取消行号可以设置set noun 阅读全文
posted @ 2021-08-29 00:25 金盛年华 阅读(622) 评论(0) 推荐(0) 编辑

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