Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- First create firewall rule with All Ports allowed on ip range 0.0.0.0/0 and Allow HTTP To all Servers
- Main Server:
- Allow HTTPS
- First link external IP to cloudflare domains ibdp.ml and mineview.ml
- sudo apt-get update
- sudo apt-get install lib32gcc1 lib32stdc++6 coreutils screen tmux socat unzip git wget libsqlite3-dev
- sudo apt install default-jre
- sudo apt install ufw
- sudo apt install nginx
- sudo ufw allow 'Nginx Full'
- sudo ufw allow OpenSSH
- sudo ufw allow 25565
- sudo ufw enable
- sudo systemctl start nginx
- sudo nano /etc/nginx/sites-available/ibdp.ml
- server {
- listen 80;
- server_name ;
- return 444;
- }
- server {
- listen 80 default_server;
- server_name ibdp.ml;
- index index.html;
- root /var/www/ibdp.ml;
- location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
- expires max;
- log_not_found off;
- }
- access_log /var/log/nginx/ibdp.ml-access.log;
- error_log /var/log/nginx/ibdp.ml-error.log;
- }
- server {
- listen 80;
- server_name console.ibdp.ml;
- access_log /var/log/nginx/mcmyadmin-access.log;
- error_log /var/log/nginx/mcmyadmin-error.log;
- location / {
- proxy_pass http://127.0.0.1:8080/;
- proxy_set_header Host $host;
- proxy_set_header X-Forwarded-For $remote_addr;
- }
- }
- server {
- listen 80;
- server_name console.mineview.ml;
- access_log /var/log/nginx/mcmyadmin-access.log;
- error_log /var/log/nginx/mcmyadmin-error.log;
- location / {
- proxy_pass http://127.0.0.1:8080/;
- proxy_set_header Host $host;
- proxy_set_header X-Forwarded-For $remote_addr;
- }
- }
- Ctrl-O
- Enter
- Ctrl X
- sudo ln -s /etc/nginx/sites-available/ibdp.ml /etc/nginx/sites-enabled/
- sudo rm -r /etc/nginx/sites-available/default
- sudo systemctl restart nginx
- sudo apt-get install python-certbot-nginx -t stretch-backports
- sudo certbot --nginx
- sudo su -c "bash <(wget -qO- https://cubecoders.com/getamp.sh)"
- 3164206d-e418-4a85-b723-14ff50a903aa
- sudo su -l AMP
- ampinstmgr restart ADS01
- Target Server:
- sudo apt-get update
- sudo apt-get install lib32gcc1 lib32stdc++6 coreutils screen tmux socat unzip git wget libsqlite3-dev
- sudo apt install default-jre
- sudo su -c "bash <(wget -qO- https://cubecoders.com/getamp.sh)"
- 3164206d-e418-4a85-b723-14ff50a903aa
- sudo su -l AMP
- ampinstmgr restart ADS01
- Directory Management:
- Remove Directory:
- rm -r (Directory)
- Remove File:
- rm -i (File)
- Remove Directory and Files inside:
- rm -rf (Directory)
- Show Storage:
- df
- To List Files:
- ls -d $PWD/*
- To Download Etc:
- cd /home/AMP/.ampdata/instances/Minecraft02/Minecraft/plugins
- wget http://yivesmirror.com/files/paper/Paper-latest.jar
- Unzip Etc:
- unzip ampinstmgr.zip
- ADS Management:
- Stop ADS:
- ampinstmgr StopAllInstances
- Start ADS:
- ampinstmgr startinstance ADS01
- Restart ADS:
- ampinstmgr restart ADS01
- Updating the AMP instances:
- ampinstmgr upgradeall
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement