使用了半年多的Vultr,总体来说性价比高,比较稳定,后台功能也算强大,不过日本节点这边电信要绕路,而洛杉矶节点经测试线路稳定,就切换到洛杉矶节点了。备份从前备份都是先导出数据库,然后将网站文件打包下载下来。现在其实使用几条命令就能搞定了。killall nginx service mysql stop tar zcvf /home/wwwroot/default/wwwroot.tar.gz /home/wwwroot tar zcvf /home/wwwroot/default/nginx.tar.gz /usr/local/nginx/conf tar zcvf /home/wwwroot/default/mysql.tar.gz /usr/local/mysql/var /usr/local/nginx/sbin/nginx service mysql start 执行命令之后在/home/wwwroot/default/目录下生成3个压缩文件,分别对应网站目录、nginx配置文件、MYSQL数据库。然后在新的VPS上执行wget命令将备份文件下载过来
今天看到有WordPress博主在问“WordPress博客首页如何排除指定分类的文章?”。用户为什么想这样做的原因有很多,也许你不希望在首页上显示上显示自己生活类的文章,而只显示一些新闻类的文章。要做到这一点,你就需要在 The loop 中更改调用文章的函数。WordPress默认主题 Twenty Ten 和 Twenty Eleven 使用 the_post() 函数来调用所有的博客文章。the_post() 函数使用 WP_Query。我们可以使用 WP_Query 函数本身来自定义哪些文章被调用,或者哪些存档、分类、时间的文章可以显示在主页。
很多WordPress博客的页脚都会加上版权声明。当我们进入2012年以后,为了确保你的版权声明不过时,就必须要及时的更新版权声明时间。下面我来介绍一种可以自动更新你的版权声明时间的方法。在你的博客中显示当年的版权声明你就需要用到the_date函数。添加以上函数到你的footer.php模板文件中,以确保自动更新时间。类似:Copyright © 落日博客
以前在做网站的时候,都需要到各大引擎提交自己的网站,以便搜索引擎能尽快的收录我们的网站。 但即使这样做了,搜索引擎们也会视你的更新速度和权重等因素来决定网站的收录速度。 Google提供了网站管理员工具,使我们可以提交网站的sitemap,这样Google就会及
表格是一种清晰简明并容易被解读的格式,而使用CSS样式表可以非常容易的创建一个很酷的表格。今天,我想向大家推荐5个WordPress插件,可以让大家轻松的创建和管理HTML表格。它们可以买南非下载,易于使用,并会加快在网站中显示表格。
Hunter