User Profile

User's Address,Order,Post etc.

Signup time:2022.12.05 21:10:19

Showing 5 out of total 125

ubuntu 23.10 修复启动grub
Author : Anonymous Publish Time : 22 Jan 2024 04:50:09

用ubuntu安装光盘或者u盘启动,

1.首先用fdisk -l 或者lsblk 查看磁盘相关信息,找到ubuntu所在分区比如  /dev/sda7

 

2. sudo mount /dev/sda7 /mnt

 sudo mount --bind /dev /mnt/dev

 sudo mount --bind /proc /mnt/proc

 sudo mount --bind /sys /mnt/sys   

不加上后面三条好像不行

3 sudo chroot  /mnt

4. 然后就可以安装grub了  grub-install /dev/sda  (安装到/dev/sda7 分区好像会报错)

 

 

gateway worker apache 配置代理连接不上
Author : Anonymous Publish Time : 18 Jan 2024 06:11:01

1、apache 加载 proxy_module ,proxy_wstunnel_module 模块
2、apache 配置 ssl 

# Proxy Config
SSLProxyEngine on
#监听的路径和转发的路径,需要输入https:// 和最后面的/
ProxyRequests Off
ProxyPass /wss ws://0.0.0.0:8585
ProxyPassReverse /wss ws://0.0.0.0:8585

需要注意的地方 这里转发的 ws://0.0.0.0:8585而不是 wss://0.0.0.0:8585我们明明在js文件里写的是

var ws = new WebSocket("wss://"+site_url+'/wss ');  配置的是wss协议?
大概原因是转发的时候要是wss协议wss://0.0.0.0:8585是找不到这个地址的
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