Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apt -y install software-properties-common
- add-apt-repository -y ppa:ondrej/php
- add-apt-repository -y ppa:chris-lea/redis-server
- curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash
- apt update
- apt -y install php7.2 php7.2-cli php7.2-gd php7.2-mysql php7.2-pdo php7.2-mbstring php7.2-tokenizer php7.2-bcmath php7.2-xml php7.2-fpm php7.2-curl php7.2-zip mariadb-server nginx curl tar unzip git redis-server
- senha: senhadomysql
- mkdir -p /var/www/pterodactyl
- cd /var/www/pterodactyl
- curl -Lo panel.tar.gz https://github.com/pterodactyl/panel/releases/download/v0.7.11/panel.tar.gz
- tar --strip-components=1 -xzvf panel.tar.gz
- chmod -R 755 storage/* bootstrap/cache/
- curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
- cp .env.example .env
- composer install --no-dev --optimize-autoloader
- php artisan key:generate --force
- copiar a key e guardar
- mysql -u root -p
- USE mysql;
- CREATE USER 'pterodactyl'@'127.0.0.1' IDENTIFIED BY 'senhadomysql';
- CREATE DATABASE panel;
- GRANT ALL PRIVILEGES ON panel.* TO 'pterodactyl'@'127.0.0.1';
- FLUSH PRIVILEGES;
- exit
- php artisan p:environment:setup
- seuemail@gmail.com
- https://link.do.painel
- Europe/Amsterdam
- enter,enter,enter,yes
- php artisan p:environment:database
- 127.0.0.1
- 3306
- panel
- pterodactyl
- senhadomysql
- php artisan p:environment:mail
- mail
- seuemail@gmail.com
- Pterodactyl Panel
- sll
- php artisan migrate --seed
- yes
- php artisan p:user:make
- yes,seuemail@gmail.com,usuario,Nome,Sobrenome,senhadeacesso
- chown -R www-data:www-data *
- apt-get nano
- apt-get install nano
- sudo crontab -e
- 2,colar o codigo * * * * * php /var/www/pterodactyl/artisan schedule:run >> /dev/null 2>&1 la em baixo.
- service cron start
- nano /etc/systemd/system/pteroq.service
- # Pterodactyl Queue Worker File
- # ----------------------------------
- [Unit]
- Description=Pterodactyl Queue Worker
- After=redis-server.service
- [Service]
- # On some systems the user and group might be different.
- # Some systems use `apache` or `nginx` as the user and group.
- User=www-data
- Group=www-data
- Restart=always
- ExecStart=/usr/bin/php /var/www/pterodactyl/artisan queue:work --queue=high,standard,low --sleep=3 --tries=3
- [Install]
- WantedBy=multi-user.target
- systemctl enable pteroq.service
- systemctl start pteroq
- apt-get install letsencrypt
- y
- letsencrypt certonly -d link.do.painel
- 1,seuemail@gmail.com,A,N
- nano /etc/nginx/sites-available/pterodactyl.conf
- todos que tiver <domain> troca para o dominio
- server_tokens off;
- server {
- listen 80;
- server_name <domain>;
- return 301 https://$server_name$request_uri;
- }
- server {
- listen 443 ssl http2;
- server_name <domain>;
- root /var/www/pterodactyl/public;
- index index.php;
- access_log /var/log/nginx/pterodactyl.app-access.log;
- error_log /var/log/nginx/pterodactyl.app-error.log error;
- # allow larger file uploads and longer script runtimes
- client_max_body_size 100m;
- client_body_timeout 120s;
- sendfile off;
- # SSL Configuration
- ssl_certificate /etc/letsencrypt/live/<domain>/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/<domain>/privkey.pem;
- ssl_session_cache shared:SSL:10m;
- ssl_protocols TLSv1.2;
- ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256';
- ssl_prefer_server_ciphers on;
- # See https://hstspreload.org/ before uncommenting the line below.
- # add_header Strict-Transport-Security "max-age=15768000; preload;";
- add_header X-Content-Type-Options nosniff;
- add_header X-XSS-Protection "1; mode=block";
- add_header X-Robots-Tag none;
- add_header Content-Security-Policy "frame-ancestors 'self'";
- add_header X-Frame-Options DENY;
- add_header Referrer-Policy same-origin;
- location / {
- try_files $uri $uri/ /index.php?$query_string;
- }
- location ~ \.php$ {
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param HTTP_PROXY "";
- fastcgi_intercept_errors off;
- fastcgi_buffer_size 16k;
- fastcgi_buffers 4 16k;
- fastcgi_connect_timeout 300;
- fastcgi_send_timeout 300;
- fastcgi_read_timeout 300;
- include /etc/nginx/fastcgi_params;
- }
- location ~ /\.ht {
- deny all;
- }
- }
- sudo ln -s /etc/nginx/sites-available/pterodactyl.conf /etc/nginx/sites-enabled/pterodactyl.conf
- service nginx restart
- systemctl status nginx.service
- CTRL + C
- letsencrypt certonly -d link.do.painel
- Colocar: 1
- service nginx restart
- systemctl status nginx.service
- tem que estar ativo o nginx
- cd
- **INSTALAÇÃO DAEMON**
- curl -sSL https://get.docker.com/ | CHANNEL=stable bash
- systemctl enable docker
- sudo update-grub
- GRUB_CMDLINE_LINUX_DEFAULT="swapaccount=1"
- curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
- apt -y install nodejs make gcc g++
- mkdir -p /srv/daemon /srv/daemon-data
- cd /srv/daemon
- curl -L https://github.com/pterodactyl/daemon/releases/download/v0.6.12/daemon.tar.gz | tar --strip-components=1 -xzv
- npm install --only=production
- nano /srv/daemon/config/core.json
- Colar o Core.
- sudo npm start
- nano /etc/systemd/system/wings.service
- [Unit]
- Description=Pterodactyl Wings Daemon
- After=docker.service
- [Service]
- User=root
- #Group=some_group
- WorkingDirectory=/srv/daemon
- LimitNOFILE=4096
- PIDFile=/var/run/wings/daemon.pid
- ExecStart=/usr/bin/node /srv/daemon/src/index.js
- Restart=on-failure
- StartLimitInterval=600
- [Install]
- WantedBy=multi-user.target
- systemctl enable --now wings
- systemctl status wings
- apt install make gcc g++
- apt autoremove
- cd /srv/daemon && npm start
- cd /var/www/pterodactyl/public/
- wget https://files.phpmyadmin.net/phpMyAdmin/4.8.5/phpMyAdmin-4.8.5-all-languages.zip
- unzip phpMyAdmin-4.8.5-all-languages.zip
- mv phpMyAdmin-4.8.5-all-languages phpMyAdmin
- ai acessa por dominio.com/phpMyAdmin
- e configurar o painel
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement