Archive

01月 2024

Showing 3 out of total 13

sed 替换带有反斜杠\内容的时候怎么写
Author : Anonymous Publish Time : 17 Jan 2024 22:57:22

sed 替换带有反斜杠\内容的时候怎么写

竟然需要三个\\\反斜杠匹配,两个匹配不到?

 

sed -i "s|Form\\\FormModel|FormModel\\\FormModel|g" ./src/Admin/Form.php

 

替换当前目录下面所谓包含查找内容的文件

sed -i "s|Form\\\FormHydrator|FormModel\\\FormHydrator|g" `grep -rl "FormHydrator" ./`

 

sed -i "s|Form\\\FormModel|FormModel\\\FormModel|g" `grep -rl "FormModel" ./`

 

sed -i "s|Form\\\Field|FormModel\\\Field|g" `grep -rl "Field" ./`

PHP Startup: Unable to load dynamic library 'sodium'
Author : Anonymous Publish Time : 17 Jan 2024 06:58:34

PHP Warning:  PHP Startup: Unable to load dynamic library 'sodium' (tried: /usr/lib64/php/modules/sodium (/usr/lib64/php/modules/sodium: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/sodium.so (/usr/lib64/php/modules/sodium.so: undefined symbol: crypto_core_ristretto255_sub)) in Unknown on line 0

how to slove Uncaught Exception: class \Protocols\Socket not exist
Author : Anonymous Publish Time : 17 Jan 2024 06:44:20

how to slove Uncaught Exception: class \Protocols\Socket not exist

this error shows when i try to start gateway worker service with the command

php start.php start