chika0801 / sing-box-examples

sing-box 配置示例
https://github.com/SagerNet/sing-box
1.76k stars 292 forks source link

非常感谢大佬!小白有个小问题请教 #13

Closed tgssaa closed 1 year ago

tgssaa commented 1 year ago

在大佬教程中,端口指定为16384,密码为chika,如果想修改,该如何操作?

谢谢大佬!

chika0801 commented 1 year ago

修改 /root/sing-box_config.json 这个文件,这是服务端配置文件,至于你在SSH里打命令,还是用其它软件如winscp都个人习惯。

改完记得保存并用systemctl restart sing-box,重启后才生效。

然后记得在你用的客户端程序GUI填端口,密码之类的对应处,做相应修改。

tgssaa commented 1 year ago

非常感谢大佬!这个脚本太好用了!

chika0801 commented 1 year ago

不客气,这不是脚本,就是几步,手动复制粘贴 ,没技术的。

tgssaa commented 1 year ago

感谢大佬给我这种小白的支持!

请问,新的1.2.0版本,安装总是报错,在2台小鸡上都报错: ● sing-box.service Loaded: loaded (/etc/systemd/system/sing-box.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Fri 2023-03-24 10:40:04 EDT; 199ms ago Process: 40309 ExecStart=/root/sing-box run -c /root/sing-box_config.json (code=exited, status=1/FAILURE) Main PID: 40309 (code=exited, status=1/FAILURE) CPU: 12ms

Mar 24 10:40:04 tgsa systemd[1]: Stopped sing-box.service. Mar 24 10:40:04 tgsa systemd[1]: Started sing-box.service. Mar 24 10:40:04 tgsa sing-box[40309]: FATAL[0000] decode config at /root/sing-box_config.json: json: cannot unmarshal number into Go value of type option._Options Mar 24 10:40:04 tgsa systemd[1]: sing-box.service: Main process exited, code=exited, status=1/FAILURE Mar 24 10:40:04 tgsa systemd[1]: sing-box.service: Failed with result 'exit-code'.

先谢谢大佬!

chika0801 commented 1 year ago

你用的什么配置组合?比如你发下你的服务端配置文件?

光看这信息我也猜不出来什么原因。

tgssaa commented 1 year ago

在/root/sing-box_config.json中显示的是: 404: Not Found

tgssaa commented 1 year ago

另外,请问大佬,是否可以用CF的15年证书?如果能使用的话,在服务端和客户端设置,需要有什么不同吗?谢谢大佬!!

chika0801 commented 1 year ago

另外,请问大佬,是否可以用CF的15年证书?如果能使用的话,在服务端和客户端设置,需要有什么不同吗?谢谢大佬!!

证书的话,我没用过CF的15年,不知道它是属于自签证书吗?建议你自己申请就是了。申请教程在这有的 https://github.com/chika0801/Xray-install

chika0801 commented 1 year ago

在/root/sing-box_config.json中显示的是: 404: Not Found

光看这信息我帮不了你,你要不重装搭一次,或找台VPS重装系统后开始。sing-box的示例区我已经全更新过了。

tgssaa commented 1 year ago

好滴!谢谢大佬,我再试试看啊!