随笔分类 -  wordpress

摘要:1.yum 安装 nginxrpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpmyum info nginxyum install niginxservi... 阅读全文
posted @ 2014-07-29 16:01 Younger 阅读(316) 评论(0) 推荐(0)
摘要:MYSQL (create database site_a;)创建数据库site_a后的操作:为您的 MySQL 数据库创建用户和密码CREATE USER 'wordpress-user'@'localhost' IDENTIFIED BY 'your_strong_password';对您之前创... 阅读全文
posted @ 2014-06-17 15:58 Younger 阅读(139) 评论(0) 推荐(0)
摘要:Nginx支持伪静态(在 nginx.conf 中 修改如下)参考链接location / { index index.html index.php; if (-d $request_filename){ rewrite ^/(.*)([^/... 阅读全文
posted @ 2014-05-19 14:07 Younger 阅读(158) 评论(0) 推荐(0)
摘要:批量替换表中的字符/*update 表名 set 字段名=replace(字段名,'原来的内容','替换后的内容')*/update wp_msong_posts set post_content=replace(post_content,'id="c_names"','class="c_names... 阅读全文
posted @ 2014-05-11 14:47 Younger 阅读(120) 评论(0) 推荐(0)
摘要:Nginx 解决方案:在 /etc/nginx/config.d/mysit.conf文件的 loction \ {} 中添加if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break;}if (-f $requ... 阅读全文
posted @ 2013-04-13 03:02 Younger 阅读(14500) 评论(0) 推荐(1)
摘要:Wordpress防采集if(!$_SERVER['HTTP_USER_AGENT']) { //判断是否为空AGENTheader("Content-type: text/html; charset=utf-8");echo '不许采集!因为采集的站长MJJ!';exit;}Wordpress启用... 阅读全文
posted @ 2013-04-09 17:01 Younger 阅读(627) 评论(0) 推荐(0)