随笔分类 -  Linux

Linux 系统相关
摘要:因为 CentOS 8 已经停止维护了,如果原来系统中的软件源已经被改的乱七八糟了,推荐全部删掉重新下载: # 阿里云 wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5 阅读全文
posted @ 2023-08-31 18:27 不是豆豆 阅读(57) 评论(0) 推荐(0) 编辑
摘要:1、安装服务端 yum install -y telnet-server 2、运行服务端 systemctl start telnet.socket 3、安装客户端 yum install -y telnet Windows 可至“启用或关闭 Windows 功能”中,启用安装 telnet 客户端 阅读全文
posted @ 2023-08-21 16:11 不是豆豆 阅读(837) 评论(0) 推荐(0) 编辑
摘要:记录一些常用命令 # 查看系统启动时间uptime# 查看当前目录下文件大小llls -lhtdu -sh *# 查看当前目录下每个子目录的大小du -lh --max-depth=1# 排序查看du -ah --max-depth=1 | sort -h# 清理当前目录下包含指定目录名下指定时间前 阅读全文
posted @ 2023-06-27 14:42 不是豆豆 阅读(264) 评论(0) 推荐(0) 编辑
摘要:详情请参考以下链接: https://blog.csdn.net/qq_30665009/article/details/125938033 https://little-star.love/posts/6da98871 简略版本: # 查看系统版本 cat /etc/os-release # 查看 阅读全文
posted @ 2023-02-24 09:12 不是豆豆 阅读(1116) 评论(1) 推荐(1) 编辑
摘要:请提前做好服务器系统数据相关备份,有存在失败的概率!如果失败有可能会导致无法正常启动进入系统! 1、请先使用 yum update 命令升级系统所有组件至最新版,确保源可用 或使用以下命令指定阿里云镜像 wget -O /etc/yum.repos.d/CentOS-Base.repo https: 阅读全文
posted @ 2022-08-10 14:17 不是豆豆 阅读(889) 评论(0) 推荐(0) 编辑
摘要:在 Windows 中启用 NTP 时间同步服务端 1、运行 regedi 打开注册表编辑器 2、进入路径:计算机\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer 找到 Enab 阅读全文
posted @ 2022-08-10 10:50 不是豆豆 阅读(1120) 评论(0) 推荐(0) 编辑
摘要:转自:https://www.cnblogs.com/qq511314224/p/15464514.html curl cip.cc curl icanhazip.com curl ifconfig.me 阅读全文
posted @ 2022-08-04 10:57 不是豆豆 阅读(222) 评论(0) 推荐(0) 编辑
摘要:参考自:https://blog.csdn.net/hhy_123963/article/details/81080553 如题,若不存在该命令,可通过以下命令安装: yum -y install lrzsz 然后即可通过【rz】命令进行上传文件,通过【sz 文件名】下载文件 此方法似乎不太适用于过 阅读全文
posted @ 2022-07-11 12:29 不是豆豆 阅读(116) 评论(0) 推荐(0) 编辑
摘要:因为需要在 linux ssh 远程中访问数据库,不能直接使用 SQL Developer 图形化访问操作 找了一下 oracle 在 linux 下的命令行工具,发现官方有一个 SQL*Plus 可以使用,它似乎是集成在了 Instant Client 中 下载地址:https://www.ora 阅读全文
posted @ 2022-07-01 16:56 不是豆豆 阅读(186) 评论(0) 推荐(0) 编辑
摘要:先说结论:可以安装,但只能安装到 1.7 版本,如果镜像所需 Docker 版本或 Linux 内核版本更高的话,就没办法(比如 SQL Server),需要先升级内核 1、先确认 yum 源的可用性 yum makecache 如果不可用,则先更换源地址,如阿里云:https://develope 阅读全文
posted @ 2022-06-27 17:09 不是豆豆 阅读(552) 评论(0) 推荐(0) 编辑
摘要:参考自: https://www.binarytides.com/linux-commands-hardware-info/ https://www.binarytides.com/linux-lshw-command/ 以 CentOS 为例,安装 lshw: 然后运行: 太长可以根据需要,显示部 阅读全文
posted @ 2021-10-22 19:20 不是豆豆 阅读(348) 评论(0) 推荐(0) 编辑
摘要:转自:https://www.cnblogs.com/jxking/p/14830134.html https://blog.csdn.net/huryer/article/details/103831114 1、查看 SSH 版本,确认是否为较新版本(应该至少要 7.8 版本以上): 2、若版本较 阅读全文
posted @ 2021-10-14 17:25 不是豆豆 阅读(4558) 评论(1) 推荐(0) 编辑
摘要:yum install -y p7zip 如果提示找不到,可以尝试安装以下包后,再执行以上安装: 参考自:https://blog.csdn.net/qq_41348266/article/details/122925766 yum install -y epel-release 如有需要,可以替换 阅读全文
posted @ 2021-10-13 18:34 不是豆豆 阅读(796) 评论(0) 推荐(0) 编辑
摘要:有两个工具:iftop、nethogs 使用方法详见: https://askubuntu.com/questions/2411/how-do-i-find-out-which-process-is-eating-up-my-bandwidth https://linux.cn/article-28 阅读全文
posted @ 2021-09-12 20:28 不是豆豆 阅读(146) 评论(0) 推荐(0) 编辑
摘要:转自:https://www.cnblogs.com/xxoome/p/7115614.html 1、查看firewall服务状态 systemctl status firewalld 2、查看firewall的状态 firewall-cmd --state 3、开启、重启、关闭、firewalld 阅读全文
posted @ 2021-07-16 13:46 不是豆豆 阅读(54) 评论(0) 推荐(0) 编辑
摘要:参考:https://github.com/microsoft/msphpsql/issues/1112#issuecomment-643522139 在使用新的系统镜像(似乎是 ubuntu:20.04 及以后的版本)运行 sqlcmd 连接低版本数据库(如 SQL Server 2008 R2) 阅读全文
posted @ 2021-04-28 13:11 不是豆豆 阅读(6458) 评论(0) 推荐(0) 编辑
摘要:唔,官方版本的 mssql-tools 镜像好像好久没更新了(https://hub.docker.com/_/microsoft-mssql-tools),用起来有一些bug,在此根据官方 Dockerfile 修改生成最新版本的镜像: # SQL Server Command Line Tool 阅读全文
posted @ 2021-04-23 19:24 不是豆豆 阅读(568) 评论(0) 推荐(0) 编辑
摘要:find . -name '*.log' -type f -print -exec rm -rf {} \; 阅读全文
posted @ 2021-04-21 14:47 不是豆豆 阅读(675) 评论(0) 推荐(0) 编辑
摘要:1、通过 ifconfig 或 nmcli connection show 命令确定当前使用的网卡名称(如:eth0、eno1 等,以下均以 eno1 为例进行设置) 2、通过命令 nmcli con mod eno1 ipv4.dns "114.114.114.114 8.8.8.8" 修改对应网 阅读全文
posted @ 2020-12-22 13:21 不是豆豆 阅读(12249) 评论(0) 推荐(0) 编辑
摘要:在教育网内可能访问外部镜像源会非常慢,可以考虑转换到学校的相关源,即可提升下载速度: https://mirrors.cnnic.cn/help/centos/ https://mirrors.tuna.tsinghua.edu.cn/help/centos/ 阅读全文
posted @ 2020-12-01 05:35 不是豆豆 阅读(95) 评论(0) 推荐(0) 编辑

友情链接:迷途


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