关于projectX小白用户使用中遇到的小问题:permission denied #5038
heavycat233
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
最初自建按照流程一步步走很顺利。直到一次我挂了梯子下载steam游戏,steam自动切到洛杉矶去,更新了FF7重生流量直接没了。下个月解封后,重启应用梯子不行了。
本人小白,而且他报错显示没有换行,后面的被遮住了。。。所以只看到一个a unified platform for anti censorship
没有看到后面具体的提示。直到我看见报错指向tls,后面还有个Failed to build TLS config,还有个箭头,键盘移动后才发现具体报错。
failed to parse certificate > open /home/myusername/xray_cert/xray.crt: permission denied。
才明白了原因。xray没权限访问证书文件。但用过chmod也没有用。联想到之前nginx配置网页时候,也出现了403报错,也是nginx无法读取配置文件下的index.html。
于是更改了xray.service的user
sudo nano /etc/systemd/system/xray.service
把里面user,默认nobody,改成我自己当前用户名myusername。
然后
sudo systemctl daemon-reload
重启系统服务文件
sudo systemctl restart xray
重启xray
小白,不懂linux的应用权限这么难整,过程可能是我按教程做的时候在root下运行的xray?感觉也不是。不清楚主要是权限问题,终于解决了。
还有就是nginx无法访问index.html的问题
sudo nano /etc/nginx/nginx.conf
更改里面的user。user=myusername。
然后
sudo systemctl reload nginx
重启服务就OK了。还有就是projectx里http重定向https的问题,加了后网页也会打不开,显示重定向次数过多。这个就不明白了。反正没加重定向就ok。依然用80端口监听。
俺是真的小白,最多大学学点vb跟c语言。linux实在没用过。花两三天终于解决了问题。好在现在AI还是挺方便。。。
Beta Was this translation helpful? Give feedback.
All reactions