PHPMailer + SSL使用
<?php require('phpmailer/class.phpmailer.php'); require('phpmailer/class.smtp.php'); $mailer = new PHPMailer(); // 使用SMTP形式发送 $mailer->IsSMTP(); // 编码 $mailer->CharSet =
<?php require('phpmailer/class.phpmailer.php'); require('phpmailer/class.smtp.php'); $mailer = new PHPMailer(); // 使用SMTP形式发送 $mailer->IsSMTP(); // 编码 $mailer->CharSet =
netstat -tunlp |grep 端口号locate master | grep '/master$'查看端口被哪个程序占用lsof -i:端口号
telnet mail.kyzy.cc 25Trying xxx.62.116.147...Connected to mail.kyzy.cc.Escape character is '^]'.220 mail.kyzy.cc ESMTP Postfixmail from:250 2.1.0 Okrcpt to:mailto:[email protected] 5.7.1 mailto:xxxxx@
一、删除系统自带的sendmailapt remove sendmail 二、安装postfix,dovecotapt install postfix dovecot-core dovecot-imapd dovecot-pop3d 三、配置postfix生成受信任的证书上面的证书可以通过自己创建一个域名的方式进行生成,然后将证书用于下面的SSL证书配置1、配置postfix基本参数vi /etc
【备注】master1 xx.104.242.89 master2 xx.182.126.76同步的数据库 ultrax同步的数据库 blog在master1上面配置vi /etc/my.cnf主从配置master1 xx.104.242.89user = mysql log_bin = mysql-bin relay_log=relay-bin binlog_format=mixed serve
进入控制台 -> 左侧“云服务器 ECS” -> 在页面中找到“我的资源”,选择要开放端口的服务器资源然后点击进入,然后在实例的后面点击“更多”,选择“网络和安全组” -> “安全组配置”进入后点击右侧“配置规则”进去后点击“添加安全组规则”,确定后就可以了
原因是缺少pcre类库,安装完毕后重新编译安装nginx就行yum list pcre*当然了,类似[emerg] 27557#0: without PCRE library "gzip_disable" supports builtin "msie6" and "degradation" mask only in[emerg] 27600#0: unknown directive "set" i
解决办法,编辑nginx/conf.d/search.kyzy.cc.conf文件注释掉listen [::]:80;
安装依赖yum install curl-devel
当使用service iptables restart的时候报错,如下图解决方法iptables -P OUTPUT ACCEPT service iptables save service iptables restart