ERROR! MySQL server PID file could not be found!

归类于LNMPA 参与评论

应该是误删了mysql-bin.0000xx的文件
清空mysql-bin.index 然后重启mysql试试

livezilla 添加 Google Adword Conversion Code

归类于Google Adwords 参与评论

LiveZilla 允许您与第三方统计工具包括 Google Adwords 跟踪聊天的开始。

然而,Google Adwords 将提供你你不能直接进入 LiveZilla 配置 HTML 代码。跟踪与 LiveZilla 谷歌 Adwords 转换是仍然容易,虽然。

请将您的转换 Id (类似 1006446625) 和转换标签(类似 SyhPCGfsowAQodD03wM) 添加到下面的代码并将代码添加到您的组配置:

LiveZilla 服务器管理-> 用户管理-> 组-> 组-> 转换代码 :

var s = document.createElement(‘script’);
var conversionid = “here goes your conversion id”;
var conversionlabel = “here goes your conversion label”;
var src = “//www.googleadservices.com/pagead/conversion/”+conversionid+”/?value=1.00&currency_code=EUR&label=”+conversionlabel+”&guid=ON&script=0″;
s.setAttribute(‘src’,src);
document.body.appendChild(s);

CentOS 静态IP分配,提示Error, some other host already uses address解决办法

归类于Linux 参与评论

最近xenserver的VPS个别LINUX系统出现这个错误提示,当配置网卡为static,即静态IP时,启动网卡总报”Error, some other host already
uses
address“,即使换了其它IP,有时仍然还会出现类似情况,而DHCP则会正常工作,如果你确信你的IP是你自己的没有冲突,就按如下方法吧。
编辑 /etc/sysconfig/network-scripts/ifup-eth,将
if ! arping -q -c 2 -w 3 -D -I ${REALDEVICE} ${IPADDR} ; then
echo $”Error, some other host already uses address ${IPADDR}.”
exit 1
fi
用#注释掉,然后输入
#service network restart
重启网络服务,网卡加载成功

livezilla 5.2.5.1 更换图片的方式

归类于其他 参与评论

在“连接/脚本生成器”里修改。然后,找到代码中关于图片的片段,复制粘贴到 index.php 中。

Temporary failure in name resolution

归类于Linux 参与评论

VPS下载的时候,提示 Temporary failure in name resolution ,检查 /etc/resolv.conf 正常,重启httpd: service httpd restart, 正常,重启 lnmpa 也正常,无任何错误提示。

最后 vi /etc/hosts 把需要下载的网站的网址和IP添加上去,保存,重启httpd,后搞定

邮件询盘突然不能转发,检查及解决方法记录如下

归类于LNMPA 一条评论

1.看下 /usr/sbin/sendmail 是否存在,不存在就重装:yum install sendmail,重装后需重启sendmail:/etc/rc.d/init.d/sendmail restart;
2.看下 joomla 后台 system info 里面的 sendmail_path 值是否为 /usr/sbin/sendmail -t -i 不是的话,需要编辑/usr/local/php/etc/php.ini 查找sendmail_path, 去掉前面的”;”,后面改为“/usr/sbin/sendmail -t -i”。 改好保持,重启php或lnmpa。
3.修改sendmail配置:Sendmail的配置十分复杂。它的配置文件是sendmail.cf,位于/etc/mail目录下,详细步骤参考:http://zhidao.baidu.com/question/1374767.html
4.换过服务器的joomla站点,需要调整好目录和配置文件的属性,程序会自动检测新服务器的配置。

sendmail 报错:cannot open `/usr/share/sendmail-cf/m4 出现这个报错是因为没有安装sendmail-cf这个软件,yum install sendmail-cf 安装完sendmail-cf后解决问题。

linux VPS 安全设置

归类于Linux 参与评论

一、防 DDos 攻击

1.禁止Ping
# echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all

2.防止各种端口扫描
iptables -A FORWARD -p tcp –tcp-flags SYN,ACK,FIN,RST RST -m limit –limit 1/s -j ACCEPT

3.启用DDos deflate

详见:http://deflate.medialayer.com/

DDoS deflate的默认配置位于/usr/local/ddos/ddos.conf;/usr/local/ddos/ignore.ip.list” IP地址白名单。

4.开启网站日志,一遍发生攻击后,可以及时分析攻击来源以及攻击的对象是哪个网站

二、防止暴力破解SSH密码

启用denyhosts 防止猜测SSH密码。

DenyHosts 是 Python 语言写的一个程序,它会分析sshd的日志文件,当发现重复的攻击时就会记录IP到/etc/hosts.deny文件,从而达到自动屏IP的功能。详见:http://www.myhack58.com/Article/48/66/2011/28833.htm

linux 禁 Ping

归类于Linux 参与评论

Disable ping response Temporarily

To disable the PING response, login as root and type the following command

# echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all

To reenable the PING response do this:

# echo 0 >/proc/sys/net/ipv4/icmp_echo_ignore_all


Disable ping response Permanently

Edit the /etc/sysctl.conf file and add the following line

net.ipv4.conf.icmp_echo_ignore_all = 1

Execute sysctl -p to enforce this setting immediately

# sysctl -p

Google 对内链和外链的定义

归类于SEO & SEM 参与评论

http://googlewebmastercentral.blogspot.com/2011/08/reorganizing-internal-vs-external.html

可以明确看出,二级域名之间属于内链

Joomla 响应式模板对IE6,IE8的支持方法

归类于Joomla 参与评论

用了个响应式模板,结果,IE9以下版本不支持,郁闷,搜之。

得到:http://www.joostrap.com/blog/bootstrap-3-supporting-internet-explorer-8-and-9

<!–[if lt IE 9]>
<script src=”<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/html5shiv.js” type=”text/javascript”></script>
<script src=”<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/respond.min.js” type=”text/javascript”></script>
<![endif]–>

到 head

搞定!

顶部