随笔分类 -  开发-常用记录

摘要:方案一:rm -rf 删除目录时要判断目录 方案二:Shell 脚本指定 set -u 方案三:safe-rm 替换 rm 方案四:建立回收站机制 方案五:根文件挂载成只读 参考:https://cloud.tencent.com/developer/article/1629740 阅读全文
posted @ 2024-12-28 18:47 LiYanbin 阅读(3) 评论(0) 推荐(0) 编辑
摘要:1、主机X安装nfs服务 sudo apt install nfs-kernel-server -y` 2、并设置/etc/exports文件,添加 /data/documents 192.168.78.165(rw,sync,no_root_squash,no_subtree_check) 设置好 阅读全文
posted @ 2024-12-28 18:32 LiYanbin 阅读(2) 评论(0) 推荐(0) 编辑
摘要:1、server端修改配置文件 [root@localhost ~]# vim /etc/ntp.conf #设置本地时间服务器 service 192.168.99.85 # 外部时间服务器不可用时,以本地时间作为时间服务 server 127.127.1.0 fudge 127.127.1.0 阅读全文
posted @ 2024-12-28 18:28 LiYanbin 阅读(9) 评论(0) 推荐(0) 编辑
摘要:原理:https://spotcodereviews.com/articles/debugging/2021/04/09/how-to-debug-a-segmentation-fault-without-a-core-dump.html The corresponding Linux kernel 阅读全文
posted @ 2024-11-24 21:09 LiYanbin 编辑
摘要:停止docker服务 1、停止自定义的监控如果有,比如: systemctl stop check_docker_service.service 2、停止所有容器 docker stop $(docker ps -aq) 3、停止系统服务 systemctl stop docker.socket d 阅读全文
posted @ 2024-05-13 21:21 LiYanbin 阅读(3) 评论(0) 推荐(0) 编辑
摘要:aliyun os centos 9 docker-ce install sudo wget -O /etc/yum.repos.d/docker-ce.repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo sud 阅读全文
posted @ 2024-05-13 21:13 LiYanbin 阅读(46) 评论(0) 推荐(0) 编辑
摘要:目录mysql命令登录命令在命令行直接执行命令查看表数据/修改表数据/清空数据查看表结构/增加列/删除列/删除表wireshark 抓mysql的报文redis命令登录并执行命令/查看数据批量删除数据sqlite命令mysql binlog mysql命令 登录命令 mysql -uroot -p' 阅读全文
posted @ 2024-05-13 21:09 LiYanbin 阅读(7) 评论(0) 推荐(0) 编辑
摘要:【1】查看包信息 how to get package info for same lib on centos $rpm -qf /usr/lib64/libmicrohttpd.so.10 libmicrohttpd-0.9.33-2.el7.x86_64 $rpm -qi libmicrohtt 阅读全文
posted @ 2024-05-12 20:02 LiYanbin 阅读(22) 评论(0) 推荐(0) 编辑

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