This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as models from "models"; | |
| import Sequelize from "sequelize"; | |
| import fs from "fs"; | |
| delete models.default; | |
| const sequelize = new Sequelize( | |
| '', | |
| '', | |
| '', { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://easyengine.io/ | |
| https://github.com/EasyEngine/easyengine | |
| SERVIDOR NGINX COM CHACE EMBUTIDO. | |
| Single Site Multisite w/ Subdir Multisite w/ Subdomain | |
| NO Cache --wp --wpsubdir --wpsubdomain | |
| WP Super Cache --wpsc --wpsubdir --wpsc --wpsubdomain --wpsc | |
| W3 Total Cache --w3tc --wpsubdir --w3tc --wpsubdomain --w3tc | |
| Nginx cache --wpfc --wpsubdir --wpfc --wpsubdomain --wpfc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| As pastas | |
| Vamos então começar a explicar cada uma delas. Seus nomes e o que se encontra dentro delas. Sigam-me os bons. | |
| Pasta “/” – É a pasta raiz do sistema. A pasta que tem a maior hierarquia. Tudo o mais se encontra dentro dela. | |
| Pasta “/boot” – Contém os arquivos necessários para o arranque do sistema, ou boot, como preferir. | |
| Pasta “/bin” – Pasta que contém os arquivos executáveis do sistema. Entre eles, os comandos bash, tais como ls, cat e cd. Além disso, há também utilitários para configuração do sistema e gerenciamento de arquivos. | |
| Pasta “/sbin” – Contém arquivos executáveis necessários para o boot, para recuperação e reparações. Somente podem ser executados pelo usuário root, ou raiz, ou administrador do sistema. | |
| Pasta “/dev” – Pasta que contém arquivos que representam dispositivos de hardware e que são essenciais para o bom funcionamento do sistema. | |
| Pasta “/etc” – Uma das pastas mais importantes. Aqui encontramos os arquivos de configuração e aplicativos do sistema. Tais como Apache, X11 e sysconfi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #refs https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-14-04 | |
| 1 - adduser USER | add um usuario novo ao sistema | |
| 2 - gpasswd -a demo sudo | de privilegios de root ao usuario | |
| 3 - https://gist.github.com/geison20/3e4d7059194f5d1942e23d67f2a2c218 | |
| 4 - # Desabilitar o acesso remoto com o usuario root navegue | |
| nano /etc/ssh/sshd_config | Procure por PermitRootLogin yes e remova o yes por no. | |
| 5 - service ssh restart | Reinicie o servidor | |
| 6 - # configurando um firewall basico | |
| sudo ufw allow ssh #abre permissao para a port 22 do ssh | |
| sudo ufw allow 80/tcp #permite o acesso a port 80 para requests http |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1 - ssh-keygen | cria uma chave ssh com o usuario ao qual voce vai acessar o servidor | |
| 2 - acesse seu servidor com ssh nomedousuario@ip_do_servidor | |
| 3 - coloque sua senha normalmente e cria uma pasta na raiz " ~ ". | |
| 4 - .ssh/ e de permissao de chmod 700 .ssh/ | |
| 5 - crie o um arquivo touch authorized_keys e cole sua public key | |
| 6 - saia e relogue normalmente com sua ssh | |
| 7 - adicione a permissao chmod 600 .ssh/authorized_keys | |
| #TUTORIAL | |
| https://www.youtube.com/watch?v=EuIYabZS3ow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1 - sudo apt-get update | |
| 2 - sudo apt-get install apache2 | |
| # teste o local host no seu browser, e.g : localhost ou 127.0.0.1 | |
| 3 - sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql | |
| 4 - sudo mysql_install_db | |
| 5 - sudo /usr/bin/mysql_secure_installation | |
| 6 - sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt | |
| 7 - sudo nano /etc/apache2/mods-enabled/dir.conf -> add index.php ao inicio | |
| # MODULOS PHP | |
| php5-cgi - server-side, HTML-embedded scripting language (CGI binary) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| crontab -e Edita o crontab ou cria um caso ainda não exista; | |
| crontab -l Mostra o conteúdo do crontab; | |
| crontab -r Remove o crontab; | |
| crontab -v Mostra quando foi a última vez que o crontab foi | |
| 44 3 * 3-11 1-5 root /var/www/usando_crontab.php | |
| | | | | | | | | |
| | | | | | | +---- comando a ser executado (com a rota) | |
| | | | | | +---------- usuário que executará o comando | |
| | | | | +-------------- dia da semana |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # fazendo download do PPA | |
| sudo add-apt-repository ppa:webupd8team/java | |
| sudo apt-get update | |
| sudo apt-get install oracle-java8-installer | |
| #verificando aversao do java | |
| java -version | |
| #config PPA | |
| sudo apt-get install oracle-java8-set-default |
NewerOlder

