随笔分类 -  linux

摘要:详细参考链接:https://zhuanlan.zhihu.com/p/380793959 我是要下载 spring security官网文档,使用了该命令: # 下载spring security 5.6.3 的 参考文档 wget -c -r -np -k -L -p https://docs. 阅读全文
posted @ 2022-04-28 12:48 mediocrep 阅读(412) 评论(0) 推荐(0) 编辑
摘要:删除某个目录下所有文件中的所有空行 1 目标 本文是为了给大家提供一个“删除某个目录下所有文件中的所有空行”的最简单的方法,没有之一。 2 背景 这次到背景出差,临时需要将Oracle数据库中的数据导出为文本文件,然后导入到人大金仓数据库。导出时一切顺利,导入时发现无法导入,原因是我导出的文件中有空 阅读全文
posted @ 2022-02-28 16:00 mediocrep 阅读(840) 评论(0) 推荐(0) 编辑
摘要:1 relative skills 1.1 linux批量替换目录下所有文件中的某字符串 method1: 比如,要将目录/modules下面所有文件中的zhangsan都修改成lisi,这样做: sed -i "s/zhangsan/lisi/g" `grep zhangsan -rl /modu 阅读全文
posted @ 2021-08-26 12:38 mediocrep 阅读(47) 评论(0) 推荐(0) 编辑
摘要:1 sftp command: Put file to server or Get File to local By DropZone You can ssh to the server or open git at local, then using sftp command as the bel 阅读全文
posted @ 2021-08-26 12:32 mediocrep 阅读(32) 评论(0) 推荐(0) 编辑
摘要:method 1 # change /etc/docker/daemon.json (but found it is invalid) # old: { "registry-mirrors": ["https://1riogb3e.mirror.aliyuncs.com"], "insecure-r 阅读全文
posted @ 2021-08-26 12:23 mediocrep 阅读(841) 评论(0) 推荐(0) 编辑
摘要:小结:防火墙的主机名和IP策略禁止桌面文件数据库的内核服务的启动加载。 桌面系统 [CentOS6] GNOME 2.x [CentOS7] GNOME 3.x(GNOME Shell) 文件系统 [CentOS6] ext4 [CentOS7] xfs 内核版本 [CentOS6] 2.6.x-x 阅读全文
posted @ 2021-08-26 11:44 mediocrep 阅读(73) 评论(0) 推荐(0) 编辑
摘要:linux中循环批量下载文本文件中的超链接图片,然后在h2中通过sql语句批量更新图片链接地址 发现halo的文章中很多图片的超链接地址是这样的: <div class="content"><img src="https://doc-1256053707.cos.ap-beijing.myqclou 阅读全文
posted @ 2021-08-26 11:29 mediocrep 阅读(399) 评论(0) 推荐(0) 编辑
摘要:背景:在CentOS7,CentOS8下 # 设置nginx的主页内容index.html,用于测试 cd /usr/local/nginx/html echo 'This is Master' > index.html curl http://localhost # 获取和安装keepalived 阅读全文
posted @ 2021-08-26 10:59 mediocrep 阅读(314) 评论(1) 推荐(0) 编辑
摘要:背景:nfs服务器(172.17.0.16),nfs客户端都是docker容器 报错内容如下: mount 172.17.0.16:/share /data/share Job for rpc-statd.service failed because a timeout was exceeded. 阅读全文
posted @ 2021-08-26 10:50 mediocrep 阅读(1738) 评论(0) 推荐(0) 编辑
摘要:1 Ubuntu18.04 1.1 安装NFS 服务器端:sudo apt-get install -y nfs-kernel-server 服务器端:sudo apt-get install -y portmap(如果安装上一个,可以不用执行此操作) 客户端:sudo apt-get instal 阅读全文
posted @ 2021-08-26 10:47 mediocrep 阅读(324) 评论(0) 推荐(0) 编辑
摘要:在linux中常常用mount命令把硬盘分区或者光盘挂载到文件系统中。/etc/fstab就是在开机引导的时候自动挂载到linux的文件系统。 例如这是一个普通的/etc/fstab: /dev/device mountpoint type rules dump order # 数据项 <file 阅读全文
posted @ 2021-08-26 10:44 mediocrep 阅读(850) 评论(0) 推荐(0) 编辑
摘要:安装步骤如下: [root@node3 /]# yum -y install gcc-c++ libxml2-devel curl-devel libjpeg-devel libpng-devel freetype-devel [root@node3 /]# cd /usr/apps/ [root@ 阅读全文
posted @ 2021-08-26 10:35 mediocrep 阅读(237) 评论(0) 推荐(0) 编辑
摘要:1 ubuntu18.04.3中idea2018.3无法使用搜狗拼音输入法 方法一: 登录进去查看发现其所属用户和组都是root,于是尝试修改之: chown -R witt:witt /usr/develop/idea-IU-183.6156.11/ 然后重启idea,然后退出、并重启 fcitx 阅读全文
posted @ 2021-08-25 17:41 mediocrep 阅读(64) 评论(0) 推荐(0) 编辑
摘要:方法一 shell脚本如下: #!/bin/bash #日志文件路径 logPath=/var/log/yx.log echo -e "$(date +%Y%m%d" "%H:%M:%S): 清理程序开始执行!清理规则:A.文件大于100M,且存在时间超过5天;B.模型目录下的子目录存在时间超过30 阅读全文
posted @ 2021-08-25 17:00 mediocrep 阅读(1293) 评论(0) 推荐(0) 编辑
摘要:1.cat /etc/shells #查看系统中安装的 shell 2.eg1. #!/bin/bash echo "Hello World !" 3.Shell 脚本的执行: chmod +x ./hello.sh #使脚本具有执行权限 ./hello.sh #执行脚本 /bin/sh /root 阅读全文
posted @ 2021-08-25 16:00 mediocrep 阅读(50) 评论(0) 推荐(0) 编辑
摘要:problems_centos 1 CentOS虚拟机断电或强制关机,再开机出现问题 errorlog: Entering emergency mode. Exit the shell to continue RCA: 找出问题出现在哪: 这里的 journalctl 是查看系统的日志信息;直接输入 阅读全文
posted @ 2021-08-16 21:32 mediocrep 阅读(212) 评论(0) 推荐(0) 编辑
摘要:problems_linux 1 './hello.sh' failed desc: sh hello.sh , bash hello.sh succeeded, but './hello.sh' failed, RCA: because sh and bash has the executing 阅读全文
posted @ 2021-08-16 02:22 mediocrep 阅读(43) 评论(0) 推荐(0) 编辑
摘要:(skills_linux) skills_linux 1 differences between soft link and hard link 2 压缩、解压缩、加密压缩 2.1 tar 压缩 tar -cvf 解压缩 tar -xvf 因为-f 表示指定文件名称,所以后面一定跟一个文件名 eg 阅读全文
posted @ 2021-08-16 00:29 mediocrep 阅读(125) 评论(0) 推荐(0) 编辑

既然选择了远方,便只顾风雨兼程!
点击右上角即可分享
微信分享提示