CentOS 8 找不到 chsh 命令的解决方案
使用 chsh 修改用户的默认 shell 报错: [root@centos8 ~]$ chsh -s /bin/zsh main sudo: chsh: command not found 原因:CentOS 8 默认不带 chsh 命令,需要手动安装。 执行:sudo dnf install util-lin ... 阅读更多
使用 chsh 修改用户的默认 shell 报错: [root@centos8 ~]$ chsh -s /bin/zsh main sudo: chsh: command not found 原因:CentOS 8 默认不带 chsh 命令,需要手动安装。 执行:sudo dnf install util-lin ... 阅读更多
使用虚拟机安装 CentOS5 后,系统没有自动识别网口信息,导致无法配置 IP 远程登陆。 问题原因: 安装系统的时候,如果选择了系统是 CentOS5 或者更老的版本,虚拟机会将虚拟网卡设备设置为 vmxnet3 系列,该系列的网卡为 AMD PCNet 型号。但当前虚拟机的网卡实际为 Intel 的网卡,需要使用 e1 ... 阅读更多
centos5 已停止了维护,国内大部分的源也停止维护,找了很久都没有找到可用的源。最后才发现,centos 早期的源都已经 vault.centos.org 网站下,国内的镜像源也都改成了 centos-vault 。 腾讯云源:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
[base] name=CentOS-5.8 - Base #mirrorlist=http://mirrorlist.centos.org/?release=5.8&arch=$basearch&repo=os baseurl=http://mirrors.cloud.tencent.com/centos-vault/5.8/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 #released updates [updates] name=CentOS-5.8 - Updates #mirrorlist=http://mirrorlist.centos.org/?release=5.8&arch=$basearch&repo=updates baseurl=http://mirrors.cloud.tencent.com/centos-vault/5.8/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 #additional packages that may be useful [extras] name=CentOS-5.8 - Extras #mirrorlist=http://mirrorlist.centos.org/?release=5.8&arch=$basearch&repo=extras baseurl=http://mirrors.cloud.tencent.com/centos-vault/5.8/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-5.8 - Plus #mirrorlist=http://mirrorlist.centos.org/?release=5.8&arch=$basearch&repo=centosplus baseurl=http://mirrors.cloud.tencent.com/centos-vault/5.8/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 #contrib - packages by Centos Users [contrib] name=CentOS-5.8 - Contrib #mirrorlist=http://mirrorlist.centos.org/?release=5.8&arch=$basearch&repo=contrib baseurl=http://mirrors.cloud.tencent.com/centos-vault/5.8/contrib/$basearch/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 |
openssl 是目前使用最广泛的 ssl 库之一,除了提供全面的 ssl 加密库以外,还提供了一些基础的命令行工具用于测试,目前绝大多数的软件都是使用 openssl 库来进行 ssl 交互,很多系统默认都自带了 openssl 相关的库和工具。 在我的工作中,最常用到的就是利用它来进行漏洞检测 (如 SSL 重协商漏洞) 以 ... 阅读更多
linux 下的命令,大多不支持 PAC 形式代理,只支持 http/socks 代理形式。因此为了使用 PAC 文件做代理,必须要通过三方软件来转发这部分代理的流量。 privoxy 是一个支持 PAC 代理的程序,可以根据不同规则选择代理线路,我们可以使用它来作为代理软件转发客户端流量。 privoxy 官方网站:www ... 阅读更多
反向代理配置:
|
1 2 3 4 5 6 7 8 9 10 11 12 |
server { listen 80; server_name mirrors.maqian.work; location / { proxy_pass http://mirrors.aliyun.com; proxy_redirect off; proxy_set_header Host $proxy_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } |
在浏览器访问 mirrors.maqian.work 时: $host: mirrors.maqian.work $proxy_host: mirrors.aliyun.com
一、问题现象 调用命令的时候,出现报错:cannot create temp file for here-document: No space left on device 从错误的日志来看,应该是磁盘空间不足了。但是执行 df -h 看磁盘都是有剩余的: 上次遇到过一个类似的现象是,文件删除,但是容量 ... 阅读更多
一、问题现象 昨晚大半夜 apache 挂了起不来了,查看错误日志信息为: 最开始错误日志只有 Configuration Failed,并没有下面那四行,是把错误级别调成 debug 才出来的。 二、解决办法 删除/var/run/ssl_mutex,apache 应该是之前异常退出了,没有清理干净这个文件, ... 阅读更多
一、问题现象 使用 item2 登录到远程 linux 后,系统的语言编程了中文: 本来对于中国人来说,使用中文没有什么不好。但是报错信息是中文就导致出问题了不好查,百度和 google 查不到相关信息。比较尴尬! 二、解决办法 通过 locale 命令查看当前终端的语言和字符编码信息: [crayon-69489 ... 阅读更多
ss5 项目主页:http://ss5.sourceforge.net/,下载地址:https://sourceforge.net/projects/ss5/files/。 先下载下来源码包,解压:
|
1 2 |
tar -zxvf ss5-3.8.9-8.tar.gz cd ss5-3.8.9 |
安装依赖项: [crayon-694 ... 阅读更多