sudo systemctl start v2ray (base) root@ecsgpu-geelypk-product-bigdata:/# sudo systemctl…
- User
sudo systemctl start v2ray (base) root@ecsgpu-geelypk-product-bigdata:/# sudo systemctl status v2ray ● v2ray.service - V2Ray Service Loaded: loaded (/etc/systemd/system/v2ray.service; disabled; vendor preset: enabled) Drop-In: /etc/systemd/system/v2ray.service.d └─10-donot_touch_single_conf.conf Active: active (running) since Sun 2024-04-28 15:28:17 CST; 1 day 18h ago Docs: https://www.v2fly.org/ Main PID: 1368825 (v2ray) Tasks: 19 (limit: 74653) Memory: 14.5M CPU: 9.107s CGroup: /system.slice/v2ray.service └─1368825 /usr/local/bin/v2ray run -config /usr/local/etc/v2ray/config.json
Apr 28 15:28:17 ecsgpu-geelypk-product-bigdata systemd[1]: Started V2Ray Service. Apr 28 15:28:17 ecsgpu-geelypk-product-bigdata v2ray[1368825]: V2Ray 5.15.3 (V2Fly, a community-driven edition of V2Ray.) > Apr 28 15:28:17 ecsgpu-geelypk-product-bigdata v2ray[1368825]: A unified platform for anti-censorship. Apr 28 15:28:17 ecsgpu-geelypk-product-bigdata v2ray[1368825]: 2024/04/28 15:28:17 [Warning] V2Ray 5.15.3 started ...skipping... ● v2ray.service - V2Ray Service Loaded: loaded (/etc/systemd/system/v2ray.service; disabled; vendor preset: enabled) Drop-In: /etc/systemd/system/v2ray.service.d └─10-donot_touch_single_conf.conf Active: active (running) since Sun 2024-04-28 15:28:17 CST; 1 day 18h ago Docs: https://www.v2fly.org/ Main PID: 1368825 (v2ray) Tasks: 19 (limit: 74653) Memory: 14.5M CPU: 9.107s CGroup: /system.slice/v2ray.service └─1368825 /usr/local/bin/v2ray run -config /usr/local/etc/v2ray/config.json
Apr 28 15:28:17 ecsgpu-geelypk-product-bigdata systemd[1]: Started V2Ray Service. Apr 28 15:28:17 ecsgpu-geelypk-product-bigdata v2ray[1368825]: V2Ray 5.15.3 (V2Fly, a community-driven edition of V2Ray.) > Apr 28 15:28:17 ecsgpu-geelypk-product-bigdata v2ray[1368825]: A unified platform for anti-censorship. Apr 28 15:28:17 ecsgpu-geelypk-product-bigdata v2ray[1368825]: 2024/04/28 15:28:17 [Warning] V2Ray 5.15.3 started ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
(base) root@ecsgpu-geelypk-product-bigdata:/# curl -x socks5://127.0.0.1:10808 https://www.google.com -v
- Trying 127.0.0.1:10808...
- connect to 127.0.0.1 port 10808 failed: Connection refused
- Failed to connect to 127.0.0.1 port 10808 after 0 ms: Connection refused
- Closing connection 0 curl: (7) Failed to connect to 127.0.0.1 port 10808 after 0 ms: Connection refused (base) root@ecsgpu-geelypk-product-bigdata:/# ^C (base) root@ecsgpu-geelypk-product-bigdata:/# sudo netstat -tuln | grep :10808 (base) root@ecsgpu-geelypk-product-bigdata:/# ls -l /v2ray-linux-64/ total 34844 -rw-r--r-- 1 root root 2337 Apr 30 09:45 config.json drwxr-xr-x 2 root root 4096 Apr 30 09:40 doc -rw-r--r-- 1 root root 5256730 Apr 30 09:40 geoip.dat -rw-r--r-- 1 root root 311972 Apr 30 09:40 geosite.dat drwxr-xr-x 2 root root 4096 Apr 30 09:40 systemd drwxr-xr-x 2 root root 4096 Apr 30 09:40 systemv -rw-r--r-- 1 root root 12120064 Apr 30 09:40 v2ctl -rw-r--r-- 1 root root 0 Apr 30 09:40 v2ctl.sig -rw-r--r-- 1 root root 17960960 Apr 30 09:40 v2ray -rw-r--r-- 1 root root 0 Apr 30 09:40 v2ray.sig -rw-r--r-- 1 root root 391 Apr 30 09:40 vpoint_socks_vmess.json -rw-r--r-- 1 root root 537 Apr 30 09:40 vpoint_vmess_freedom.json
- Assistant
From the output, it seems that the V2Ray service is running successfully, but the connection is being refused when trying to curl through the proxy. Here are a few steps you can take to troubleshoot this issue:
-
Check the V2Ray configuration file (/v2ray-linux-64/config.json) to ensure that the settings for the proxy are correctly configured.
-
Make sure that the V2Ray service is listening on the correct port (10808) by running the command
sudo netstat -tuln | grep :10808. -
If the port is not being listened to, you may need to check the V2Ray service configuration and restart it to apply any changes.
-
Check for any firewall rules or security settings that may be blocking the connection to the proxy port.
-
Ensure that the proxy settings in your curl command are correct (e.g., socks5://127.0.0.1:10808).
By following these steps and ensuring that all configurations are set up correctly, you should be able to resolve the issue and successfully connect through the V2Ray proxy.
-