EvgenyNerush / easy-xray

Script for Linux which makes XRay installation and configuration easy
https://t.me/eXRay_chat
BSD 3-Clause "New" or "Revised" License
178 stars 24 forks source link

cant start service xray #7

Open tierline1 opened 5 months ago

tierline1 commented 5 months ago

Capture after successfull instalation Xray service doesn't start, see screenshot any advice?

EvgenyNerush commented 5 months ago

easy xray is written for user+sudo or for Docker root, not for system root. Try to make a user, give a password to it, then install/start xray:

useradd -m username
passwd username
# logout, login as user
sudo ./ex.sh install
sudo xray -c conf/config_server.sh
# or sudo systemctl restart xray
tierline1 commented 5 months ago

easy xray is written for user+sudo or for Docker root, not for system root. Try to make a user, give a password to it, then install/start xray:

useradd -m username
passwd username
# logout, login as user
sudo ./ex.sh install
sudo xray -c conf/config_server.sh
# or sudo systemctl restart xray

ok, now i have another error, i have nginx with some web-sites on my vps:

image

EvgenyNerush commented 5 months ago

One of xray plusses is that it is hard to detect by authorities. Connection to it looks like usual https user connection to a website (in the configuration used in easy-xray). So xray should listen ports 80 and 443. If you already have nginx on these ports, you can use xray only on other ports that looks strange. Anyway, if you want to, you can change ports 80 and 443 in ex.sh and templateconfig*.jsonc and try to use it this way. I havn't tested it in such configuration.