pptpd 架设 VPN 遇到的问题(续)
原来架设过VPN且没有遇到任何问题,不过这次运气就没那么好了,折腾了老半天才解决。
我遇到的问题是拨号出现619,pptpd日志输出以下内容:
Mar 10 22:37:28 Cloud1050 pppd[8193]: Connect: ppp0 <--> /dev/pts/1
Mar 10 22:37:58 Cloud1050 pppd[8193]: LCP: timeout sending Config-Requests
Mar 10 22:37:58 Cloud1050 pppd[8193]: Connection terminated.
...
配置Postfix SMTP的SASL认证
这里我利用dovecot提供的SASL来完成postfix中SMTP的认证。1.配置dovecot:打开dovecot的配置文件(/etc/dovecot.conf),修改内容如下:auth default {
mechanisms = plain login
passdb pam {
}
userdb pass...
解决Nginx+uwsgi+Django线程发送邮件的问题
最近一直在完善我的新版网站,在这一版中我加入了用户注册的功能,系统会生成用户帐户并向用户的注册邮箱发送一封激活邮件。在开发服务器上,我花了很多时间来完善这个功能,但转入生产服务器时却遇到了一个怪问题 —— 邮件不能成功发送,甚至日志里也并未记录任何错误。通过各方面的搜索,终于发现该问题是因为uwsgi的参数设置不当造成的,应在uwsgi启动参数中加入:--enable-threads该参数允许用内嵌的语言启动线程(即允许在app程序中产生子线程)。至此,问题解决!
pptp + freeradius + mysql 安装与配置记录
注:在此之前,我已完成对pptp的安装与配置并且正常工作。
一、安装基本的软件包:
freeradius:
# yum install freeradius2 :High-performance and highly configurable free RADIUS server
# yum install freeradius2-mysql :MySQL support for freeradius
# yum install ...
VPN 架设中一些问题的解决方法(pptpd)
最近尝试了下VPN的架设,期间遇到的一些问题在此做个记录和总结:
1.pptpd已启动运行,但不能正常连接,查看messages发现以下记录:
MGR: connections limit (100) reached, extra IP addresses ignored
MGR: Manager process started
MGR: Maximum of 100 connections available
通过搜索,查得解决方法如下:
a.打开配置文件/etc/pptpd.c...
一个Yum更新错误的解决方法
今天在进行yum更新的时候遇到这样的错误:
Transaction Check Error:
file /etc/my.cnf from install of mysql-5.0.95-1.el5_7.1.i386 conflicts with file from package mysql-libs-5.0.92-lxcenter.1.i386
file /usr/lib/mysql/libmysqlclient.so.15.0.0 from install of mysql-5.0.95-1.el5_7.1.i38...
nginx配置文件说明
最近简单熟悉了下nginx的部署,以下是对nginx.conf配置文件的一些注解(注:代码段是nginx.conf的默认内容):worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
...