侧边栏壁纸
博主头像
cn2linux博主等级

行动起来,活在当下

  • 累计撰写 128 篇文章
  • 累计创建 1 个标签
  • 累计收到 0 条评论

目 录CONTENT

文章目录

草稿信息

[Linux中将shell脚本打包为可执行文件](https://cdmana.com/2022/01/202201050621113361.html)

duoSecurity

mkcert

error from daemon in stream: Error grabbing logs: invalid character 'l' after object key:value pair

https://my.oschina.net/kcw/blog/3001706

centos 8 install iproute-tc

sudo dnf makecache --refresh

yum install libffi-devel -y

解决centos下安装python3.7.0以上版本时报错 ModuleNotFoundError: No module named '_ctypes'

异常报错

dnf --enablerepo=powertools install oniguruma-devel

参考网址: [centos8 安装 oniguruma-devel](https://www.yanglong.pro/centos8-%E5%AE%89%E8%A3%85-oniguruma-devel/)

解决Please check that your locale settings问题

vim .bashrc

export LC_ALL=C

source .bashrc

还有fzf perl 乱码报错 具体 需要通过centos 8 安装fzf 复现

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

LANGUAGE = (unset),

LC_ALL = (unset),

LC_CTYPE = "UTF-8",

LANG = "en_US.UTF-8"

are supported and installed on your system.

perl: warning: Falling back to a fallback locale ("en_US.UTF-8").

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

LANGUAGE = (unset),

LC_ALL = (unset),

LC_CTYPE = "UTF-8",

LANG = "en_US.UTF-8"

are supported and installed on your system.

perl: warning: Falling back to a fallback locale ("en_US.UTF-8").

参考链接:https://cloud.tencent.com/developer/article/1340498

ewomail 新增域名


# ewomail的官方教程里,涉及到多域名的教程其实不完整。

# 他告诉你 从邮箱后台域名栏目添加的域名是副域名,和主域名一样配置解析就可以了

# 但是这里面有一个DKIM,这没说怎么添加

# 生成dkim

amavisd -c /etc/amavisd/amavisd.conf genrsa /ewomail/dkim/201.com.pem

# 在/etc/amavisd/amavisd.conf找到:

dkim_key("a.com", "dkim", "/var/lib/dkim/a.com.pem");

# 在下面新增一行

dkim_key("b.com", "dkim", "/var/lib/dkim/b.com.pem");

找到dkim_key开头,复制添加一行,参考图上。

# 重启amavisd

service amavisd restart

# 对应该域名设置dkim的域名解析即可。

#其他

[将luarocks整合进openresty,并安装lfs](https://www.kancloud.cn/idzqj/customer/2065247)

[金十数据](https://svip.jin10.com/author/2441237)

[kswapd0挖矿病毒查杀过程](https://codenie.github.io/post/kswapd0-wa-kuang-bing-du-cha-sha-guo-cheng/)

[iptables配置docker服务端口访问限制](https://blog.csdn.net/zxxshaycormac/article/details/115450925)

[在 Linux 上测试硬盘读写速度](https://einverne.github.io/post/2019/10/test-disk-write-and-read-speed-in-linux.html)

bash 漏洞:https://www.cnblogs.com/qmfsun/p/7591757.html

nginx geo 变量使用 http://www.ttlsa.com/nginx/using-nginx-geo-method/

tornado mysql https://github.com/snower/TorMySQL

mysql 初始化 空密码:https://developer.aliyun.com/article/693503

tornado定制json格式错误信息以及源码解析:https://www.jianshu.com/p/ad353f74bff3

Linux 下以其他用户身份运行程序—— su、sudo、runuser :https://www.cnblogs.com/bodhitree/p/6018369.html

[ImportError: No module named '_ctypes' when using Value from module multiprocessing](https://stackoverflow.com/questions/27022373/python3-importerror-no-module-named-ctypes-when-using-value-from-module-mul)

[Python with语句](https://geek-docs.com/python/python-examples/python-context-manager-and-with-statements.html)

OS=$(awk -F '=' '/PRETTY_NAME/ { print $2 }' /etc/os-release)
default_install=yum
[[ ${OS} =~ "Rocky" && ${OS} =~ '8.' ]]  && default_install=dnf

yum install  epel-release  -y
[[ ${default_install} == "yum" ]] && ${default_install}
yum install -y 

0

评论区