升级centos7内核3.10到最新的5.11 By duncan21Posted on 2021 年 3 月 19 日2021 年 10 月 20 日Posted in LinuxTagged kernel, 内核No Comments on 升级centos7内核3.10到最新的5.11 What we will do: Update and Upgrade CentOS 7 Checking the Kernel Version Add ELRepo Repos[……] 阅读全文 Read More
记录一次CentOS7升级gcc版本 By duncan21Posted on 2021 年 3 月 13 日2021 年 3 月 13 日Posted in LinuxTagged g++, gccNo Comments on 记录一次CentOS7升级gcc版本 问题:我的MySQL版本有点旧了,可能会有安全上的隐患,所以想升级一下到MySQL8,在编译安装的时候提示gcc版本过低,Centos 7默认gcc版本为4.8,这里以升级至8.3.1版本为例[……] 阅读全文 Read More
提升局域网中的主机的网络传输速度 By duncan21Posted on 2021 年 3 月 10 日2021 年 3 月 18 日Posted in LinuxTagged full duple, 全双工No Comments on 提升局域网中的主机的网络传输速度 我在家里的局域网中,我win7上传文件到虚拟机中 [root@k8s-matser01 ~]# rz rz waiting to receive. zmodem trl+C 100%[……] 阅读全文 Read More
忘了wiki的登陆密码 By duncan21Posted on 2021 年 3 月 7 日2021 年 3 月 7 日Posted in LinuxTagged wiki, 密码No Comments on 忘了wiki的登陆密码 不小心忘记了wiki的登陆密码,网上找了下解决办法,需要做一下2个步骤: 1.通过修改表my_user,修改用户名密码, UPDATE my_user SET user_password=[......] 阅读全文 Read More
我的网站从今天开始支持ipv6访问 By duncan21Posted on 2021 年 2 月 9 日2021 年 2 月 9 日Posted in LinuxNo Comments on 我的网站从今天开始支持ipv6访问 要开启网站的ipv6,需要很多的支持 a.服务器的OS要能支持ipv6,已centos7为例: 内核开启下面的参数 [root@li1548-187 teddylu]# tail -1 /e[......] 阅读全文 Read More
安装php7.4 By duncan21Posted on 2020 年 11 月 17 日2021 年 10 月 10 日Posted in LinuxTagged php7.4No Comments on 安装php7.4 安装前的准备工作 安装PHP7.4找不到包 No package ‘oniguruma’ found错误 wget https://github.com/kkos/oniguruma/archiv[......]阅读全文 Read More
在CentOS 7上安装RabbitMQ By duncan21Posted on 2020 年 10 月 27 日2023 年 4 月 26 日Posted in LinuxNo Comments on 在CentOS 7上安装RabbitMQ 安装Erlang RabbitMQ是用Erlang语言编写的,在本教程中我们将安装最新版本的Erlang到服务器中。 Erlang在默认的YUM存储库中不可用,因此您将需要安装EPEL存储库。[……] 阅读全文 Read More
nginx之geoip模块的安装和使用 By duncan21Posted on 2018 年 7 月 29 日2021 年 4 月 10 日Posted in LinuxTagged geoipNo Comments on nginx之geoip模块的安装和使用 OS:CentOS Linux release 7.5.1804 (Core) http_geoip_module模块,需要geoip库支持: yum -y install geoip-dev[......]阅读全文 Read More
如何显示完整的centos计算机名称 By duncan21Posted on 2018 年 5 月 14 日Posted in LinuxTagged ps1No Comments on 如何显示完整的centos计算机名称 环境: # cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core) 修改:/etc/bashrc 文件中的$PS1的内容[……] 阅读全文 Read More
Nginx开启pagespeed加速 By duncan21Posted on 2017 年 12 月 20 日2017 年 12 月 20 日Posted in LinuxTagged pagespeedNo Comments on Nginx开启pagespeed加速 #什么是pagespeed 一个由谷歌开发的网站服务器模块,名为PageSpeed模块(https://developers.google.com/speed/pagespeed/module)[……] 阅读全文 Read More
总结nginx出现502的原因及解决方案 By duncan21Posted on 2017 年 12 月 19 日2017 年 12 月 19 日Posted in LinuxTagged 502No Comments on 总结nginx出现502的原因及解决方案 首先看一下官方对502的描述及说明: 502-Bad Gateway 坏的网关,一般是代理服务器请求后端服务时,后端服务不可用或没有完成响应网管服务器,通常是反向代理服务器下面的节点出问题所导致的[……] 阅读全文 Read More
常用的分析nginx日志的命令 By duncan21Posted on 2017 年 9 月 5 日Posted in LinuxTagged nginx, 日志No Comments on 常用的分析nginx日志的命令 awk ‘$9~/503/’ m.log>503.log ?取日志m.log中的503,并重定向到文件503.log awk ‘$9 !~ /200/’ ? 取日志m.log中的不是200[……] 阅读全文 Read More
nginx 同一个IP上配置多个HTTPS主机 By duncan21Posted on 2017 年 5 月 22 日Posted in LinuxTagged 证书No Comments on nginx 同一个IP上配置多个HTTPS主机 参考:http://www.ttlsa.com/web/multiple-https-host-nginx-with-a-ip-configuration/ [……] 阅读全文 Read More
curl: (77) Problem with the SSL CA cert (path? access rights?) By duncan21Posted on 2017 年 4 月 6 日2017 年 4 月 6 日Posted in Linux, wordpressTagged curlNo Comments on curl: (77) Problem with the SSL CA cert (path? access rights?) 今天遇到了一个问题,在打开wp的后台的时候发现新闻无法正常显示,提示一下错误: curl: (77) Problem with the SSL CA cert (path? access right[……] 阅读全文 Read More
centos下将curl的nss改成openssl,以支持微博登陆 By duncan21Posted on 2017 年 3 月 14 日2017 年 3 月 15 日Posted in LinuxTagged curlNo Comments on centos下将curl的nss改成openssl,以支持微博登陆 问题:我们的的一个站点是给用户登录的,有提供微博登陆,由于微博登陆需要的时候是https,但是我们的centos系统中nss在centos 6/7的系统里面的curl支持的https是nss版本的,而[……] 阅读全文 Read More
[转]lsof的用法 By duncan21Posted on 2017 年 2 月 7 日Posted in LinuxTagged lsofNo Comments on [转]lsof的用法 lsof 是 list open files 的缩写,功能是列出当前系统打开文件的工具。 在Linux环境下,任何事物都以文件的形式存在,通过文件不仅仅可以访问常规数据,还可以访问网络连接和硬件[……] 阅读全文 Read More
centos7下编译安装libiconv-1.14 error: ‘gets’ undeclared here (not in a function) By duncan21Posted on 2017 年 1 月 30 日2021 年 4 月 15 日Posted in LinuxTagged libiconvNo Comments on centos7下编译安装libiconv-1.14 error: ‘gets’ undeclared here (not in a function) 今天在centos7下编译安装libiconv-1.14报错: 解决方法如下: 编辑 libiconv-1.14/srclib/stdio.h 文件,这个文件在make之后才会生成[……] 阅读全文 Read More
系统出现kernel: audit: backlog limit exceeded提示 By duncan21Posted on 2017 年 1 月 26 日Posted in LinuxTagged audit, backlogNo Comments on 系统出现kernel: audit: backlog limit exceeded提示 今天早上上班以来,发现一台服务器无法ssh,果断找到了机房重启,机房重启的过程中,大量的 backlog limit exceeded 错误,如下图: 我就马上找了一些关于audit的信[……] 阅读全文 Read More
解决手机浏览器提示网站证书无效错误提示 By duncan21Posted on 2017 年 1 月 20 日2021 年 4 月 14 日Posted in LinuxTagged ssl, 浏览器错误No Comments on 解决手机浏览器提示网站证书无效错误提示 网站使用证书已经很久了,pc端打开没有任何问题,但是发现在手机端打开,浏览器会提示证书有问题: 通过工具检测,发现是证书链不完整: 我以comodo证书[……] 阅读全文 Read More
Centos7系统优化 By duncan21Posted on 2017 年 1 月 19 日2021 年 11 月 10 日Posted in LinuxTagged centos7, 优化No Comments on Centos7系统优化 #升级内核到最新 可以参考:https://teddylu.xyz/blog/4258.html #升级openssl 可以参考:https://teddylu.[……] 阅读全文 Read More