+运算符把右边的数组元素附加到左边的数组后面,两个数组中都有的键名,则只用左边数组中的,右边的被忽略。


+运算符把右边的数组元素附加到左边的数组后面,两个数组中都有的键名,则只用左边数组中的,右边的被忽略。
需要安装ms office
Set objWord = CreateObject("Word.Application")
objWord.Visible = False
Set fso = CreateObject("Scripting.FileSystemObject")
For Each objFile In fso.GetFolder("D:\working\z99f\").Files
If LCase(fso.GetExtensionName(objFile)) = "doc" Then
Set objDoc = objWord.Documents.Open(objFile.Path)
pdfPath = Replace(objFile.Path, ".doc", ".pdf")
objDoc.SaveAs pdfPath, 17 '17为PDF格式代码
objDoc.Close
' Set objDoc = objWord.Documents.Open(objFile.Path)
' pdfPath = Replace(objFile.Path, ".doc", ".docx")
' objDoc.SaveAs pdfPath, 16 '16为docx格式代码
' objDoc.Close
End If
Next
objWord.Quit
增加 table_definition_cache
LIKE '%keyword%'
)。(a, b, c)
,查询条件为 b=1
或 c=1
时失效。(a, b)
,条件 a>1 AND b=2
中 b
可能失效。WHERE YEAR(date_column)=2025
。LIKE '%abc'
。WHERE id='123'
vs WHERE id=123
)。sqlCopy Code-- 创建索引
CREATE INDEX idx_name ON table_name(column1, column2);
-- 查看索引
SHOW INDEX FROM table_name;
-- 删除索引
DROP INDEX idx_name ON table_name;
sed
是一种流编辑器,用于对输入流(文件或管道)进行基本的文本转换。它是 Unix/Linux 系统下的一个非常强大的文本处理工具。以下是 sed
的一些常见用法:
sed 's/旧字符串/新字符串/' 文件名
这会将文件中的第一个匹配到的“旧字符串”替换为“新字符串”。
sed 's/旧字符串/新字符串/g' 文件名
这会将文件中所有匹配到的“旧字符串”替换为“新字符串”。
sed '2s/旧字符串/新字符串/' 文件名
这只会替换第 2 行中的第一个匹配项。
sed '2d' 文件名
这会删除第 2 行。
sed -n '2p' 文件名
这只会打印第 2 行。
sed -i 's/旧字符串/新字符串/g' 文件名
这会直接修改原文件内容。
如果你有具体的 sed
使用场景或问题,请提供更多信息,我可以给出更详细的帮助。
find /pathforyoupath/ -type d -empty -delete -print
public static function getIpX(): ?string {
[$ip] = self::getIp();
return $ip;
}
public static function getIp(): array {
$ip0 = $ip = $_SERVER['REMOTE_ADDR'] ?? null;
if (in_array($ip, [
'10.29.185.7', '127.0.0.1', '172.17.0.1', '172.31.242.237', # 可信IP列表
])) {
$ip1 = $_SERVER['HTTP_X_FORWARDED_FOR'] ?? null;
if ($ip1) {
$ip0 = $ip1;
$ip = explode(',', $ip1)[0];
}
}
if (!$ip) {
$ip = $_SERVER['REMOTE_ADDR'] ?? null;
}
return [$ip, $ip0];
}
Linux 中 Swap 交换分区设置教程,以及 Swap 大小与内存的关系 – 知乎
系统配置:Linux有一个swappiness参数,决定了系统使用swap的频率。默认值通常为60,值越低,越不容易使用swap。可以通过以下命令查看当前值:
cat /proc/sys/vm/swappiness
如果你希望系统更倾向于使用swap,可以将其设置为一个更高的值,例如:
sudo sysctl vm.swappiness=80
————————————————
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/sunyuhua_keyboard/article/details/14248714
nginx:
client_max_body_size 1G;
php.ini:
upload_max_filesize = 1G
post_max_size = 1G
nginx restart failed:
nginx: [alert] OPENSSL_init_ssl() failed (SSL: error:12800067:DSO support routines::could not load the shared library:filename(/snap/certbot/4325/usr/lib/x86_64-linux-gnu/ossl-modules/fips.so): /snap/certbot/4325/usr/lib/x86_64-linux-gnu/ossl-modules/fips.so: cannot open shared object file: No such file or directory error:12800067:DSO support routines::could not load the shared library error:07880025:common libcrypto routines::reason(37):name=fips error:0700006D:configuration file routines::module initialization error:module=providers, value=provider_sect retcode=-1 )
解决办法:
nginx restart failed:
nginx: [alert] OPENSSL_init_ssl() failed (SSL: error:12800067:DSO support routines::could not load the shared library:filename(/snap/certbot/4325/usr/lib/x86_64-linux-gnu/ossl-modules/fips.so): /snap/certbot/4325/usr/lib/x86_64-linux-gnu/ossl-modules/fips.so: cannot open shared object file: No such file or directory error:12800067:DSO support routines::could not load the shared library error:07880025:common libcrypto routines::reason(37):name=fips error:0700006D:configuration file routines::module initialization error:module=providers, value=provider_sect retcode=-1 )
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
[root@ooops ~]# find / -name fips.so
/usr/lib64/ossl-modules/fips.so
[root@ooops ~]# mount --bind /usr/lib64/ossl-modules/ /snap/certbot/4325/usr/lib/x86_64-linux-gnu/ossl-modules/
4325
注意替换为你的id