以前在朋友圈首发,现在在这里重发。
Author: TIPSINCN-4beginnerPoster
十年树木,百年树人
道理是这么讲。。
可是年轻人初入社会,基本只是外貌党的过招就结束了。
所以除了要有百年树人的准备,更要有符合现代外貌党的造型。
装扮自己没有错,只要不是过分装扮就行。
蓝队云免费虚拟主机
领取官网:https://www.landui.com/project/freehost/
活动规则:
1、网站开设后需在网站底部加上我司链接,格式为:服务器提供商:蓝队云,并链接到http://www.landui.com,或点击上方复制代码复制加入网站底部。
2、每账号限申请一个免费虚拟主机
3、如取消我司链接被系统检测到将取消免费使用权。
4、免费虚拟主机可以长久使用。按年开通,开通后第二年到期前联系客服延期。
5、免费虚拟主机提供免费备案服务。
6、成功申请虚拟主机一个月内未使用,将自动删除。
7、免费虚拟主机禁止放置国家法律所不允许的内容。
8、免费虚拟主机无技术支持(如挂马删除、安全服务)。
9、免费虚拟主机不得二次转让,经发现将取消免费使用权。
10、最终解释权归云南蓝队云科技有限公司所有。
11、不能放置秒赞等大量占用服务器资源影响其他客户站点稳定运行的程序。
解决宝塔面板Apache报错一例AH00058
调整swap后重启,发现网站不能访问。
进入面板发现Apache没有启动。点击重启报错,代码AH00058.
具体表现:
apache无法启动。重启时提示
(20014)Internal error: AH00058: Error retrieving pid file logs/httpd.pid
AH00059: Remove it before continuing if it is corrupted.
按照提示
只要删除 server/apache/logs下面的httpd.pid文件即可重启成功
工欲善其事,必先利其器-使用说明是必读的
老话说得好:工欲善其事,必先利其器
其实很多初学者的问题,在软件或者应用的使用说明里就已经有提到。
只不过大家的习惯都是不看说明。
建议从现在开始,养成看使用说明的习惯。
WordPress 模板说明
index.php
The main template file. It is required in all themes.
style.css
The main stylesheet. It is required in all themes and contains the information header for your theme.
rtl.css
The right-to-left stylesheet is included automatically if the website language’s text direction is right-to-left.
comments.php
The comments template.
front-page.php
The front page template is always used as the site front page if it exists, regardless of what settings on Admin > Settings > Reading.
home.php
The home page template is the front page by default. If you do not set WordPress to use a static front page, this template is used to show latest posts.
header.php
The header template file usually contains your site’s document type, meta information, links to stylesheets and scripts, and other data.
singular.php
The singular template is used for posts when single.php is not found, or for pages when page.php are not found. If singular.php is not found, index.php is used.
single.php
The single post template is used when a visitor requests a single post.
single-{post-type}.php
The single post template used when a visitor requests a single post from a custom post type. For example, single-book.php would be used for displaying single posts from a custom post type named book. The index.php is used if a specific query template for the custom post type is not present.
archive-{post-type}.php
The archive post type template is used when visitors request a custom post type archive. For example, archive-books.php would be used for displaying an archive of posts from the custom post type named books. The archive.php template file is used if the archive-{post-type}.php is not present.
page.php
The page template is used when visitors request individual pages, which are a built-in template.
page-{slug}.php
The page slug template is used when visitors request a specific page, for example one with the “about” slug (page-about.php).
category.php
The category template is used when visitors request posts by category.
tag.php
The tag template is used when visitors request posts by tag.
taxonomy.php
The taxonomy term template is used when a visitor requests a term in a custom taxonomy.
author.php
The author page template is used whenever a visitor loads an author page.
date.php
The date/time template is used when posts are requested by date or time. For example, the pages generated with these slugs:
http://example.com/blog/2014/
http://example.com/blog/2014/05/
http://example.com/blog/2014/05/26/
archive.php
The archive template is used when visitors request posts by category, author, or date. Note: this template will be overridden if more specific templates are present like category.php, author.php, and date.php.
search.php
The search results template is used to display a visitor’s search results.
attachment.php
The attachment template is used when viewing a single attachment like an image, pdf, or other media file.
image.php
The image attachment template is a more specific version of attachment.php and is used when viewing a single image attachment. If not present, WordPress will use attachment.php instead.
404.php
The 404 template is used when WordPress cannot find a post, page, or other content that matches the visitor’s request.
解决wordpress多站点用离线发布的办法
具体原因不用深究。网上也有人说到https或者权限或者修改代码,其实都不需要。
原创解决方案,谢绝转载不带出处。
以下为用office word 2016发布wordprsss的连接方式。同样适用于office word 2013
错误表现:
1.开启多站点后,重新用xmlrpc连接,无法注册。
2.已经注册好的连接不受影响
解决步骤:
- 随便连接一个可以注册的账户(以下称为桥)
- 然后修改桥的账户连接网址和账号密码,点确定,不用管无法注册的提示,点取消
3.正常使用修改后的账户即可
ps.假如想要网站名保持一致,可以事先把桥的网站名改成你需要的
假如你要用wlw或者其它类似软件。
参考上面的步骤。修改对应的用户名、密码、网址、网站名称即可。
例如wlw,你需要进入到注册表里面去修改帐户设置。
wlw比word好用的地方就是可以设置tag和自动加链接
宝塔面板wordpress删除插件提示需要账号解决
原因是权限不对。
通过宝塔面板或者命令行,重新对整个文件夹赋予用户www的权限即可
WordPress简介
WordPress是免费、自由的开源软件,这份免费开源同时也是无价的。
它有多自由?
- 可以出于任何理由使用。
- 可以自由修改功能。
- 可以自由分发。
- 可以自由分布自己修改后的版本。
最新版本:v.5.2.1 下载链接:https://wordpress.org/latest.zip WordPress
官网:www.wordpress.org
基本要求:PHP 7.3+版本 MySQL 版本 5.6+ or MariaDB 版本 10.0+ HTTPS支持
它可以做什么类型的网站?
- 博客
- 企业网站
- 电商网站
- 资讯网站
- O2O
- 黄页
- 等等
它有什么优势?
- 全世界无数爱好者共同维护源码
- 无数优势的插件和主题免费使用
- 充分的自由
- 充分的技术支持
- 很容易找到专业的服务商
它有什么劣势?
- 对主机要求比较高
- 比较吃主机资源
- 容易受攻击
- 在国内需要特别处理一下