Skip to content

bannedbook/V2Ray-With-SSpanel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

V2Ray With SSpanel File

Thanks a lot to @Anankke 、 V2ray Team、 @rico93

For some reason, I will NOT ANSWER ANY ISSUES about this repo.

Note:

This edition is only for early adopters experience and technical exchanges. If you want to experience the full-featured edition, please contact @rico93 or telegram channel

For NODE

bash <(curl -L -s  https://raw.githubusercontent.com/NS-Sp4ce/V2Ray-With-SSpanel/master/install-release.sh) --panelurl https://xxxx --panelkey xxxx --nodeid NODEID

# restart v2ray node services

systemctl start v2ray

# recheck v2ray status

systemctl status v2ray

# enable auto start

systemctl enable v2ray

For MySQL Connect

reset this config to right setting

      "mysql": {
        "host": "5x.xxx.xxx.x1",
        "port": 3306,
        "user": "wwwxxxhk",
        "password": "nbdiD.xxxxT3Mj",
        "dbname": "wwwxxxhk"
      },

NOTE

panelurl : Your SSpanel URL
panelkey : Your SSpanel `mukey`, you can find it in `/path/to/wwwroot/config/.config.php`
nodeid : Your Node ID, you can set this in your SSpanel

DO NOT forget to config your sspanel like this.

YourNodeAddress;PortNum;AlterId;Method;Misc(like:Confuse、path and so more)

e.g:

test.node.1.domain;443;3;ws;tls;path=/

  • YourNodeAddress:test.node.1.domain
  • PortNum:443
  • AlterId:3
  • Misc:
    • path:/
    • Confuse:tls

Start V2ray Node And Enable Auto Start

systemctl start v2ray && systemctl enable v2ray
# checkout v2ray status
systemctl status v2ray
● v2ray.service - V2Ray Service
   Loaded: loaded (/etc/systemd/system/v2ray.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2019-10-12 18:37:48 CST; 11s ago
 Main PID: 10450 (v2ray)
   CGroup: /system.slice/v2ray.service
           └─10450 /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json

Oct 12 18:37:48 vultr.guest systemd[1]: Started V2Ray Service.
Oct 12 18:37:48 vultr.guest v2ray[10450]: V2Ray 4.19 (Po) Custom
Oct 12 18:37:48 vultr.guest v2ray[10450]: A unified platform for anti-censorship.
Oct 12 18:37:48 vultr.guest v2ray[10450]: 2019/10/12 18:37:48 [Warning] v2ray.com/core: V2Ray 4.19 started
Oct 12 18:37:51 vultr.guest v2ray[10450]: 2019/10/12 18:37:51 [Warning] SSPanelPlugin: Connected gRPC server "127.0.0.1:2333"
Oct 12 18:37:52 vultr.guest v2ray[10450]: 2019/10/12 18:37:52 [Warning] SSPanelPlugin: Before Update, Current Users 0 need to be add 1 need to be romved 0
Oct 12 18:37:52 vultr.guest v2ray[10450]: 2019/10/12 18:37:52 [Warning] SSPanelPlugin: After Update, Current Users 1 need to be add 0 need to be romved 0

For PANEL

  1. Install BaoTa and config LNMP with PHP7.2 (more steps see here https://github.com/NS-Sp4ce/ShadowSocksPanelFiles#%E5%AE%89%E8%A3%85%E5%AE%9D%E5%A1%94%E9%9D%A2%E6%9D%BF TO https://github.com/NS-Sp4ce/ShadowSocksPanelFiles#%E5%AE%89%E8%A3%85%E5%AE%9D%E5%A1%94%E9%9D%A2%E6%9D%BF )
  2. Install panel (thanks a lot to ss-panel-uim team)
cd /www/wwwroot/sspanel
yum update -y && yum install git -y
git clone -b master https://github.com/Anankke/ss-panel-v3-mod_Uim.git tmp && mv tmp/.git . && rm -rf tmp && git reset --hard
cp config/.config.example.php config/.config.php
chown -R root:root *
chmod -R 755 *
chown -R www:www storage
php composer.phar install

NOTE: if output errors like Could not open input file: composer.phar, recheck putenv() function has not been disabled and try

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
composer install

if composer output like that

Loading composer repositories with package information
Updating dependencies (including require-dev)
Killed

try to divide the swap partition for 2G

free -m
mkdir -p /var/_swap_
cd /var/_swap_
dd if=/dev/zero of=swapfile bs=1M count=2000
mkswap swapfile
swapon swapfile
echo "/var/_swap_/swapfile none swap sw 0 0" >> /etc/fstab
free -m

and run composer install again.

  1. Config Database Download sql file(glzjin_all.sql) from /www/wwwroot/sspanel/sql/ then import to mysql database

  2. Final things

php xcat createAdmin
php xcat syncusers
php xcat initQQWry
php xcat resetTraffic
php xcat initdownload

For Aliyun User

Uninstall YunDun

[Windows]

http://update.aegis.aliyun.com/download/uninstall.bat?spm=a2c4g.11186623.2.5.h6JSZc&file=uninstall.bat 


[linux]

wget http://update.aegis.aliyun.com/download/uninstall.sh
chmod +x uninstall.sh
./uninstall.sh
wget http://update.aegis.aliyun.com/download/quartz_uninstall.sh
chmod +x quartz_uninstall.sh
./quartz_uninstall.sh
pkill aliyun-service
rm  -fr /etc/init.d/agentwatch /usr/sbin/aliyun-service
rm  -rf /usr/local/aegis*
rm -rf /usr/sbin/aliyun*
chkconfig --del cloudmonitor

About

V2Ray With SSpanel

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%