Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- iptables -A INPUT -p tcp --dport 7171 -j ACCEPT
- iptables -A INPUT -p tcp --dport 7172 -j ACCEPT
- iptables -A INPUT -p tcp --dport 80 -j ACCEPT
- iptables -A INPUT -p tcp --dport 8090 -j ACCEPT
- iptables -A INPUT -p tcp --dport 3306 -j ACCEPT
- iptables -A INPUT -p tcp --dport 443 -j ACCEPT
- iptables -A INPUT -p tcp --dport 4499 -j ACCEPT
- iptables -A INPUT -p tcp --dport 8245 -j ACCEPT
- iptables -A INPUT -p tcp --dport 7173 -j ACCEPT
- apt-get update
- apt-get upgrade
- apt-get install nginx
- service nginx start
- lscpu
- nano /etc/nginx/nginx.conf
- worker_processes 4; -- troca o 4 pela quantidade de cpu q seu pc tem
- service nginx restart
- nano /etc/nginx/sites-available/default
- server {
- listen 80;
- listen [::]:80;
- ***server_name EXTERNAL IP;***
- root /usr/share/nginx/html;
- index ***index.php*** index.html index.htm;
- # Make site accessible from http://localhost/
- server_name server.unixmen.local
- }
- location ~ \.php$ {
- ***try_files $uri =404; ---------> Add this line
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- # # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
- #
- # # With php5-cgi alone:
- # fastcgi_pass 127.0.0.1:9000;
- # # With php5-fpm:
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- include fastcgi.conf;
- }
- nginx -t
- service nginx restart
- apt-get install mariadb-server mariadb-client
- service mysql status ---------- opcional
- apt-get install php5 php5-fpm php5-mysql
- nano /etc/php5/fpm/php.ini
- ctrl+w -> cgi.fix_pathinfo=1 --------- tirar ; e mudar 1 para 0
- service php5-fpm restart
- nano /usr/share/nginx/html/info.php
- <?php phpinfo() ?>
- nano /etc/php5/fpm/pool.d/www.conf
- ctrl+w -> listen = /var/run/php5-fpm.sock ---------- tirar ; e trocar /var/run/php5-fpm.sock por 127.0.0.1:9000
- service php5-fpm restart
- nano /etc/nginx/sites-available/default
- ctrl+w -> fastcgi_pass unix:/var/run/php5-fpm.sock ------ comentar com # e descomentar a linha fastcgi_pass 127.0.0.1:9000;
- service nginx restart
- apt-get install phpmyadmin
- ln -s /usr/share/phpmyadmin/ /usr/share/nginx/html
- service nginx restart
- ---------------------------------------------------------------
- TFS 0.4 -> https://github.com/s3kk/tfs04
- apt-get install git-core build-essential liblua5.2-dev libgmp3-dev libmysqlclient-dev libboost-system-dev libboost-iostreams-dev libpugixml-dev unzip unrar autoconf pkg-config automake libboost-all-dev libgmp3-dev libxml2-dev liblua5.1-0-dev libmysqlclient-dev libssl-dev libsqlite3-dev ack-grep
- git clone https://github.com/s3kk/tfs04.git
- cd tfs04
- chmod -R 777 src
- cd src
- ./autogen
- ./configure --enable-mysql --enable-root-permission --enable-server-diag
- ./build.sh
- ---------------------------------------------------------------
- OTX3 -> https://github.com/malucooo/otxserver-new
- apt-get install git-core cmake build-essential liblua5.2-dev libgmp3-dev libmysqlclient-dev libboost-system-dev libboost-iostreams-dev libpugixml-dev libcrypto++-dev unzip unrar
- git clone https://github.com/malucooo/otxserver-new.git
- mv otxserver-new otx
- cd otx
- mkdir build && cd build
- cmake ..
- make
- *GESIOR COMPATIVEL*
- https://github.com/jlcvp/GesiorMonteiro
- https://github.com/marcomoa/Gesior-AAC
- https://github.com/Riicksouzaa/TheRealGesiorFerobra
- *CLIENTE COMPATIVEL PARA USAR COM IPCHANGER*
- https://gitlab.com/guilhermesidney/cliente10/-/archive/master/cliente10-master.zip
- ---------------------------------------------------------------
- ---------------------------------------------
- ----------NOIP-----------------NOIP----------
- --------------------NOIP---------------------
- ----------NOIP-----------------NOIP----------
- ---------------------------------------------
- cd /usr/local/src/
- wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
- tar xf noip-duc-linux.tar.gz
- cd noip-2.1.9-1/
- make install
- /usr/local/bin/noip2 -C
- /usr/local/bin/noip2 -------------- launch
- sudo chmod 7777 /usr/local/etc/no-ip2.conf
- sudo nano /etc/init.d/noip
- #######################################################
- #! /bin/sh
- case "$1" in
- start)
- echo "Starting noip2"
- /usr/local/bin/noip2
- ;;
- stop)
- echo -n "Shutting down noip2"
- for i in `noip2 -S 2>&1 | grep Process | awk '{print $2}' | tr -d ','`
- do
- noip2 -K $i
- done
- ;;
- *)
- echo "Usage: $0 {start|stop}"
- exit 1
- esac
- exit 0
- #######################################################
- sudo chmod 700 /usr/local/bin/noip2
- sudo chown root:root /usr/local/bin/noip2
- sudo chmod 700 /etc/init.d/noip
- sudo chown root:root /etc/init.d/noip
- sudo chmod 700 /usr/local/etc/no-ip2.conf
- sudo chown root:root /usr/local/etc/no-ip2.conf
- -------------TESTE---------------
- sudo /etc/init.d/noip stop
- sudo /etc/init.d/noip start
- -------------TESTE---------------
- sudo nano /etc/rc.local
- adicione a cima de --exit 0-- /etc/init.d/noip start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement