一般是以下两个参数的配置问题。
upload_max_filesize='100M'
post_max_size='100M'
一般是以下两个参数的配置问题。
upload_max_filesize='100M'
post_max_size='100M'
安卓
IOS
默认安装的 WordPress 性能表现很一般,尤其如果添加了 woocommerce 插件后,后台总有一种卡顿的感觉,为了提升 WordPress/woocommerce 的使用体验,需要进行一些性能优化操作。WordPress 本身是一个基于 PHP 实现的程序,因此要优化使用体验就要在 LNMP/LAMP 架构的组件配置上进行调整。这篇文章介绍一些 LNMP 架构中,对于 WordPress 性能有影响的配置项,理论上应该也适用于其他 PHP 项目。
(更多…)每次都记不起来,记录一下…
# 添加自增约束
alter table table_name modify column COLUMN_NAME COLUMN_TYPE auto_increment;
# 配置自增起始值
alter table table_name auto_increment=10000;
类似于Map的键值类型对象缓存对于提高应用的性能有很大的作用,实现此类缓存的方式也比较多,那么该如何选择对象缓存的方式呢?由于PHP常用的运行方式主要是基于FPM的形式,这篇文章暂不考虑常驻内存形式的缓存。
(更多…)WordPress提供了完善的插件机制,通过使用插件,我们可以优化Wordpress的性能、丰富Wordpress的功能,但是插件市场的插件实现也良莠不齐的,记录一些使用体验优秀的插件,主要推荐官方的插件。
(更多…)在Google中,网站的权重(或者说“PageRank”)是一个页面的重要性的度量。它基于链接,也就是其他页面指向该页面的链接。当搜索引擎(比如Google)找到一个页面时,它会对该页面进行评估,并根据该页面的链接数量和质量来决定其权重。权重高的页面通常会在搜索结果中排名更高。
(更多…)网站标题是SEO优化中非常重要的一部分,以下是一些可以优化网站标题的建议:
(更多…)How to calculate the similarity of two articles using PHP?
(更多…)Here are some of the most common HTTP status codes and their meanings:
(更多…)
There are a number of things you can do to improve the performance of your WordPress site:
WordPress本身的安全性相对来说还是值得信任的,但是依然还是有一些缺点,那么如何避免Wordpress站点被黑呢?我们来看看纯净Wordpress站点存在的一些安全隐患吧。
(更多…)做空和做多都是金融市场中的一种交易策略,但是它们的风险是不同的。以下是一些原因,说明为什么做空比做多危险:
(更多…)There are many factors that affect a website’s ranking in Google search results, but some of the most important include:
(更多…)出现原因是安装了多个版本的库,ubuntu的一些库似乎增加了一些附加补丁,导出的符号与ubuntu有关联的版本信息,但在标准的库中是没有的。
(更多…)The decision of whether to use multiple simple queries or a join depends on the specific requirements of the query.
(更多…)记录一下使用typescript开发chrome扩展的相关配置。
必定需要用到的开发依赖项:
npm install chrome-types webpack-cli ts-loader typescript copy-webpack-plugin --save-dev
npx tsc --init
const path = require('path');
const CopyPlugin = require("copy-webpack-plugin");
module.exports = {
mode: 'production',
entry: {
index: {
import: './src/index.ts',
filename: 'index.js'
},
background: {
import: './src/background.ts',
filename: 'background.js'
}
},
plugins: [
new CopyPlugin({
patterns: [
{ from: "public", to: "" },
],
}),
],
module: {
rules: [
{
test: /.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
output: {
clean: true
},
};
"scripts": {
"test": "echo "Error: no test specified" && exit 1",
"build": "webpack build"
}
业务中有思维导图的功能,涉及到大量的树形结构搜索、查询相关的功能,使用场景上查询量远高于增删改操作,记录一下当前的解决方案。
(更多…)rclone mount sftp:/mnt o: --cache-dir %SystemRoot%TEMP --allow-other --vfs-cache-mode writes --vfs-cache-max-age 60s --allow-non-empty
// 安装nssm
winget install nssm
// 创建服务
nssm install rclone
配置信息(具体路径需要根据实际情况来确定):
Path: C:UsersAdministratorDocumentsbinrclone.exe
Arguments: mount config:/root A: --volname sftp --config C:UsersAdministratorAppDataRoamingrclonerclone.conf
是因为nssm默认使用LocalSystem用户。
任务管理器-服务-右键rclone选择打开服务->找到rclone右键选择属性->登录->选择此账户->点击右侧浏览->弹出框中选择高级->立即查找->选择一个本地账户比如Adminstrator->一路确定。