یادداشت های برنامه نویس آماتور | Amateur programmer notes
61 subscribers
92 photos
10 videos
34 files
88 links
اندازه ی آرزو هات مهم نیست
مهم اینه تو چقد میبینیش
آرزو هاتو بزرگ ببین


</create> by <ashkan\>
Download Telegram
Installation MTProxy For servers Linux
#mr.ashkan #MTProxy


Install NodeJS, NPM, GIT and PM2 on your server:

In Debian & Ubuntu

$>
apt-get install nodejs npm git
$> n
pm install pm2 -g

In Cents
OS & RHEL

$>
yum install nodejs npm git
$> n
pm install pm2 -g

Clone re
pository on your server:

$>
git clone https://github.com/FreedomPrevails/JSMTProxy.git

Enter JS
MTProxy directory and edit config file (config.json) if you wish. You can change the secret and listening port. it is in json format.

{
"port":6969,
"secret":"b0cbcef5a486d9636472ac27f8e11a9d"
}

Start th
e app in cluster mode using pm2:

$> pm2 start mtproxy.js -i max

You can
use pm2 to list running processes and check their logs:

$> pm2 list
$> p
m2 log #id
Installation MTProxy For servers Windows
#mr.Ashkan #MTProxy


Download and install NodeJS for Windows using this link: https://goo.gl/bb654A

After installation is complete, enter "Command Prompt" and install PM2 by following command:

npm install pm2 -g

and Down
load JSMTProxy using this link: https://goo.gl/NHCBKT
Extract the zip file into C Drive. and enter the command in CMD:

cd C:\JSMTProxy-master

Start th
e proxy server from "Command Prompt" by following command:

pm2 start mtproxy.js -i max

Default
port and secret:
Port: 6969
Secre
t: b0cbcef5a486d9636472ac27f8e11a9d

You can
change these both on file config.json

Note: Yo
u may need to open the proxy port number in your Windows firewall in order for it to accept connections.