阿里云服务器安装discuz发不出邮件怎么办?
用xshell登陆服务器,依次运行以下命令。
安装sendmail组建支持:
yum install sendmail
重启php-fpm进程:
/etc/init.d/php-fpm restart
检测sendmail是否运行正常(如果显示正在运行 running 就可以)
/etc/init.d/sendmail status
补充命令:
/etc/init.d/sendmail start (启动sendmail)
/etc/init.d/sendmail stop (关闭sendmail)
/etc/init.d/sendmail restart (重启sendmail)
赞 (0)