DA安装CSF以后,由于未配置所以导致DA后台消息爆满。
经过检查才发现原来CSF未关闭测试模式,所以一直通知消息Lfd down。

打开 CSF的配置 /etc/csf/csf.conf  查找到 TESTING 把默认的1修改为0,及关闭测试模式。

然后csf -crs 重启CSF和Lfd即可。

CSF配置一些参数:
CT_LIMIT 是最大并发数,默认值为0及不限制,一般建议设置为200左右即可 。

CT_PERMANENT 默认值为0,临时性屏蔽。

CT_BLOCK_TIME 临时性屏蔽多长时间 ,默认为1800秒,及30分钟,这个可以根据需要修改时长,我设置为300,5分钟。

ICMP_IN 是否允许Ping服务器,默认为开启值为1,允许Ping。设置0为禁止Ping.

很多参数设置,可以仔细琢磨,配置出适合自己的一套方案。

The service ‘lfd’ on server Joming.com is currently down  
This message has been automatically generated notifying you that the service lfd is currently down.

朋友一国内VPS出现问题,登录一查看装的是非常简单化的LNMP。

端口21、 22 没问题,LNMP安装也没问题。

全部没问题那就是iptables规则的问题了?

输入 /etc/init.d/iptables stop

一查看果真如此。随即几条命令搞定。

开启80端口:

iptables -I INPUT -p tcp --dport 80 -j ACCEPT
/etc/rc.d/init.d/iptables save #保存配置 
/etc/rc.d/init.d/iptables restart #重启服务

/etc/init.d/iptables save 或service iptables save

保存iptables规则。service iptables restart 测试,搞定。

iptables几个命令:

{start|stop|restart|condrestart|status|panic|save}

为了安全请修改DirectAdmin访问端口。

方法:

vi /usr/local/directadmin/conf/directadmin.conf

 

搜索 /2222

按i键 编辑

将2222修改成你想要的端口号。

Esc 键,输入 :wq 保存退出。

再执行:

service directadmin restart

重启DA. 完毕!

站点名称

<?php $this->options->title(); ?>

域名地址

<?php $this->options->siteUrl(); ?>

后台地址

<?php $this->options->adminUrl(); ?>

完整路径标题,比如 文章 站点

<?php $this->archiveTitle(' &raquo; ', '', ' - '); ?><?php $this->options->title(); ?>

站点说明

<?php $this->options->description(); ?>

模版文件夹地址

<?php $this->options->themeUrl(); ?>

作者名字

<?php $this->author(); ?>

当前登陆用户名字

<?php $this->user->screenName(); ?>

退出链接

<a href="<?php $this->options->logoutUrl(); ?>"><?php _e('退出'); ?></a>

rss地址

<?php $this->options->feedUrl(); ?>

作者头像

<?php $this->author->gravatar('200') ?>
参数说明
此函数是完整 img 标签,200代表长和宽

- 阅读剩余部分 -