上传文件限制导致413-Request Entity Too Large
打开nginx主配置文件nginx.conf,一般在/etc/nginx.conf这个位置,找到http{}段并修改以下内容client_max_body_size 10M;重启nginx使配置生效
打开nginx主配置文件nginx.conf,一般在/etc/nginx.conf这个位置,找到http{}段并修改以下内容client_max_body_size 10M;重启nginx使配置生效
1、登陆NewRelic2、选择apm->Get Started选择php->点击按钮Reveal license key获取一个key继续按照提示步骤向下看想要选择不同的php版本支持可以在这里找,然后下面的命令替换就行 http://yum.newrelic.com/pub/newrelic/我是安装的php7,所以没有按照官方提示来操作,如果你只需要php5.x的版本那么可以直接
1、使用tzselect命令查找需要的时区,操作步骤如下:执行tzselect命令-->选择Asia-->选择China-->Beijing Time最终会提示操作命令,如下图:You can make this change permanent for yourself by appending the line TZ='Asia/Shanghai'; export TZto
1、首先要安装pthon2.7+版本,因为Let's Encrypt需要在python2.7+版本的环境上运行,安装方法:CentOS下源码包编译安装Python-2.7.8 ,不然会报如下错误: Traceback (most recent call last): File "acme_tiny.py", line 2, in <module>
下载cd /usr/local/src wget http://python.org/ftp/python/2.7.8/Python-2.7.8.tgz tar xvf Python-2.7.8.tgz cd Python-2.7.8 注意1:如果没有c编译器需要安装,命令如下:yum install gcc注意2:先安装openssl,不然将来使用HTTPS的时候会报错(urllib2.URLE
<?php require('phpmailer/class.phpmailer.php'); require('phpmailer/class.smtp.php'); $mailer = new PHPMailer(); // 使用SMTP形式发送 $mailer->IsSMTP(); // 编码 $mailer->CharSet =
在检测邮件服务器得分的时候会发现虽然得分是10,但是还有建议来提示优化,如图:Your message does not contain a List-Unsubscribe headerThe List-Unsubscribe header is required if you send mass emails, it enables the user to easily unsubscribe
安装 opendkimapt install opendkim 编辑或者创建 opendkim 配置文件vi /etc/opendkim.conf 配置如下:Canonicalization relaxed/relaxed KeyFile /etc/opendkim/keys/kyzy.cc/default.private ExternalIgnore
参考文章:http://www.cnblogs.com/apexchu/p/4271264.htmlhttp://blog.eqoe.cn/posts/build-perfect-mail-server.htmlhttps://www.v2ex.com/t/161912一、删除系统自带的sendmailyum remove sendmail或者rpm -e sendmail 二、安装crontab
ssh user@host例如ssh [email protected]然后输入密码回车就行了,当然,前提必须是服务器开启了ssh