SHARE
TWEET

ubuntu guide

a guest Feb 10th, 2019 375 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. iptables -A INPUT -p tcp --dport 7171 -j ACCEPT
  2. iptables -A INPUT -p tcp --dport 7172 -j ACCEPT
  3. iptables -A INPUT -p tcp --dport 80 -j ACCEPT
  4. iptables -A INPUT -p tcp --dport 8090 -j ACCEPT
  5. iptables -A INPUT -p tcp --dport 3306 -j ACCEPT
  6. iptables -A INPUT -p tcp --dport 443 -j ACCEPT
  7. iptables -A INPUT -p tcp --dport 4499 -j ACCEPT
  8. iptables -A INPUT -p tcp --dport 8245 -j ACCEPT
  9. iptables -A INPUT -p tcp --dport 7173 -j ACCEPT
  10.  
  11. apt-get update
  12. apt-get upgrade
  13.  
  14. apt-get install nginx
  15.  
  16. service nginx start
  17.  
  18. lscpu
  19.  
  20. nano /etc/nginx/nginx.conf
  21.  
  22.     worker_processes 4; -- troca o 4 pela quantidade de cpu q seu pc tem
  23.  
  24. service nginx restart
  25.  
  26. nano /etc/nginx/sites-available/default
  27.  
  28.     server {
  29.       listen 80;
  30.       listen [::]:80;
  31.       ***server_name EXTERNAL IP;***
  32.       root /usr/share/nginx/html;
  33.       index ***index.php*** index.html index.htm;
  34.       # Make site accessible from http://localhost/
  35.       server_name server.unixmen.local
  36.     }
  37.    
  38.     location ~ \.php$ {
  39.          ***try_files $uri =404;   ---------> Add this line
  40.          fastcgi_split_path_info ^(.+\.php)(/.+)$;
  41.          #       # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
  42.          #
  43.          #       # With php5-cgi alone:
  44.          #      fastcgi_pass 127.0.0.1:9000;
  45.          #       # With php5-fpm:
  46.                 fastcgi_pass unix:/var/run/php5-fpm.sock;
  47.          fastcgi_index index.php;
  48.          include fastcgi.conf;
  49.     }
  50.    
  51.    
  52. nginx -t
  53.  
  54. service nginx restart
  55.  
  56. apt-get install mariadb-server mariadb-client
  57.  
  58. service mysql status ---------- opcional
  59.  
  60. apt-get install php5 php5-fpm php5-mysql
  61.  
  62. nano /etc/php5/fpm/php.ini
  63.  
  64. ctrl+w -> cgi.fix_pathinfo=1 --------- tirar ; e mudar 1 para 0
  65.  
  66. service php5-fpm restart
  67.  
  68. nano /usr/share/nginx/html/info.php
  69.  
  70.     <?php phpinfo() ?>
  71.    
  72. nano /etc/php5/fpm/pool.d/www.conf
  73. ctrl+w -> listen = /var/run/php5-fpm.sock ---------- tirar ; e trocar /var/run/php5-fpm.sock por 127.0.0.1:9000
  74.  
  75. service php5-fpm restart
  76.  
  77. nano /etc/nginx/sites-available/default
  78.  
  79. ctrl+w -> fastcgi_pass unix:/var/run/php5-fpm.sock ------ comentar com # e descomentar a linha fastcgi_pass 127.0.0.1:9000;
  80.  
  81. service nginx restart
  82.  
  83. apt-get install phpmyadmin
  84.  
  85. ln -s /usr/share/phpmyadmin/ /usr/share/nginx/html
  86.  
  87. service nginx restart
  88.  
  89. ---------------------------------------------------------------
  90. TFS 0.4 -> https://github.com/s3kk/tfs04
  91.  
  92. 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
  93.  
  94. git clone https://github.com/s3kk/tfs04.git
  95. cd tfs04
  96. chmod -R 777 src
  97. cd src
  98. ./autogen
  99. ./configure --enable-mysql --enable-root-permission --enable-server-diag
  100. ./build.sh
  101.  
  102. ---------------------------------------------------------------
  103. OTX3 -> https://github.com/malucooo/otxserver-new
  104.  
  105. 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
  106.  
  107. git clone https://github.com/malucooo/otxserver-new.git
  108. mv otxserver-new otx
  109. cd otx
  110. mkdir build && cd build
  111. cmake ..
  112. make
  113.  
  114. *GESIOR COMPATIVEL*
  115. https://github.com/jlcvp/GesiorMonteiro
  116. https://github.com/marcomoa/Gesior-AAC
  117. https://github.com/Riicksouzaa/TheRealGesiorFerobra
  118.  
  119. *CLIENTE COMPATIVEL PARA USAR COM IPCHANGER*
  120. https://gitlab.com/guilhermesidney/cliente10/-/archive/master/cliente10-master.zip
  121.  
  122. ---------------------------------------------------------------
  123.  
  124. ---------------------------------------------
  125. ----------NOIP-----------------NOIP----------
  126. --------------------NOIP---------------------
  127. ----------NOIP-----------------NOIP----------
  128. ---------------------------------------------
  129.  
  130. cd /usr/local/src/
  131.  
  132. wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
  133.  
  134. tar xf noip-duc-linux.tar.gz
  135.  
  136. cd noip-2.1.9-1/
  137.  
  138. make install
  139.  
  140. /usr/local/bin/noip2 -C
  141.  
  142. /usr/local/bin/noip2 -------------- launch
  143.  
  144. sudo chmod 7777 /usr/local/etc/no-ip2.conf
  145.  
  146. sudo nano /etc/init.d/noip
  147.  
  148. #######################################################
  149. #! /bin/sh
  150. case "$1" in
  151.     start)
  152.         echo "Starting noip2"
  153.         /usr/local/bin/noip2
  154.     ;;
  155.     stop)
  156.         echo -n "Shutting down noip2"
  157.         for i in `noip2 -S 2>&1 | grep Process | awk '{print $2}' | tr -d ','`
  158.         do
  159.           noip2 -K $i
  160.         done
  161.     ;;
  162.     *)
  163.         echo "Usage: $0 {start|stop}"
  164.         exit 1
  165. esac
  166. exit 0
  167. #######################################################
  168.  
  169. sudo chmod 700 /usr/local/bin/noip2
  170. sudo chown root:root /usr/local/bin/noip2
  171. sudo chmod 700 /etc/init.d/noip
  172. sudo chown root:root /etc/init.d/noip
  173. sudo chmod 700 /usr/local/etc/no-ip2.conf
  174. sudo chown root:root /usr/local/etc/no-ip2.conf
  175.  
  176. -------------TESTE---------------
  177. sudo /etc/init.d/noip stop
  178. sudo /etc/init.d/noip start
  179. -------------TESTE---------------
  180.  
  181. sudo nano /etc/rc.local
  182.  
  183. adicione a cima de --exit 0--  /etc/init.d/noip start
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top