欢迎各位兄弟 发布技术文章
这里的技术是共享的
postfix 安装
/etc/aliases -> /etc/aliases.db (hash形式查找速度快,mysql表里面索引也有hash?也是hash?)
/etc/postfix/main.cf <-- /etc/postfix/master.cf(默认启动进程,以及启动额外的进程)
(两个文件都必须顶格写,如果前面有空白,那么下一行就是接着上一行的内容)
/etc/postfix/main.cf 对于我们来说重要
postconf -e 直接修改 main.cf
-a
-n
-d
-m
myhostname 定义主机名,判断当前主机工作的位置,要配置成跟mx记录的主机名称一致
mydomain 一定要自己所处的核心域
mynetworks 定义本地网络,允许给其做中继的网络或地址
mynetworks 邮件中继
127.0.0.0/8
SASL认证
测试认证没有问题
[root@mail ~]# testsaslauthd -u hadoop -p 111111111
0: OK "Success."
[root@mail ~]#
看看 新的(修改的) postfix的配置
[root@mail ~]# postconf -n
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
答: cat /etc/redhat-release
来自 https://blog.csdn.net/weixin_30376323/article/details/94850523
https://www.cnblogs.com/dakewei/p/11024014.html
装了Ctag的插件可以跳转Ctrl+】
来自 https://www.cnblogs.com/jadyyummy/p/6694907.html
[root@localhost ~]# named-checkzone esprit.tn /var/named/2.0.10.in_addr.arpa zone esprit.tn/IN: NS 'ns.esprit.tn' has no address records (A or AAAA)
[root@master ~]# /etc/init.d/named restart
发送邮件时记住 防火墙要关掉
SMTP 明文传输的 -->SMTPS (安全版 ssl版)
ESMTP(SMTP的功能增强版,明文的) -->安全版也是 SMTPS
POP3:(收邮件,邮局协议)
IMAP4: Internet Mail Access Protocol (互联网邮件访问协议)
SASL: (能够实现邮件认证的) Simple Authenticaion Secure Layer
(简单认证安全层)
v1,v2 两个版本
MDA:邮件投递代理
procmail,maildrop
MUA: 邮件用户代理
linux 上 有 mutt 和 mail命令
转自:https://www.cnblogs.com/EasonJim/p/7168216.html
find命令 - 基于目录深度的搜索
1)find过滤目录使用find命令在linux系统中查找文件时,有时需要忽略某些目录,可以使用"
curl和wget基础功能有诸多重叠,如下载等。
查看您使用的是linux系统,且使用的是nginx,网站的访问日志
1. HTTP协议与TCP/IP协议的关系
Linux的文件能否找到文件的创建时间取决于文件系统类型,在ext4之前的早期文件系统中(ext、ext2、ext3),文件的元数据不会记录文件的创建时间,它只会记录访问时间、修改时间、更改时间(状态更改时间)。
add_APP_LOG_TO_env.sh ( addAPP_LOG_TO_env.sh )
#!/bin/bash
#
for file in /home/wwwroot/*/public_html ;do
if [ -d "$file" -a -f "${file}/.env" ] ;then
# echo $i
ENV=${file}/.env
sed -i '/APP\_URL\=/a \APP_LOG=daily' $ENV
sed -i 's/\r$//g' $ENV
fi
done
check_mysqld_status.sh
/sbin/service mysqld status &> /dev/null
if [ $? -eq 0 ];then
/sbin/service mysqld restart
~
cron_ykt_cron.sh
# this is the standard Drupal cron invocation that runs from cron
# this will flush the Page Cache when Minimum Cache Lifetime set to <none>
wget -O - -q -t 1 http://ykt.400.com/cron.php?cron_key=uWdhZNrttyyuuiikdxHsSyCSJGpagxAK7n3Iad
modify_ip.sh
sed -i 's@211.149.166.241@47.52.105.149@g' $ENV
for file in /home/wwwroot/*
do
if [ -d "$file" ]
then
echo "$file is directory"
echo ${file}/public_html/public
if [ -d "${file}/public_html/public" ] ; then
\cp -f /home/wwwroot/zzhmu_com/public_html/public/robots.txt ${file}/public_html/public
elif [ -f "$file" ]
echo "$file is file"