Created
April 5, 2018 15:57
-
-
Save Aleksey-Danchin/32e2571afa546d9db55f7c866812ec42 to your computer and use it in GitHub Desktop.
Start ubuntu
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
// Обновление | |
sudo apt-get update | |
sudo apt-get upgrade | |
// Установка приложений | |
sudo apt-get install vim git tree traceroute | |
// Установка nvm | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash | |
// Установка node | |
nvm install 9 | |
// Step 1 - Installing PostgreSQL, phpPgAdmin and Apache2 | |
sudo apt-get -y install postgresql postgresql-contrib phppgadmin | |
// Step 2 - Configure PostgreSQL user | |
sudo su | |
su - postgres | |
psql | |
\password postgres | |
ENTER YOUR PASSWORD | |
exit | |
// Step 3 - Configure Apache2 | |
cd /etc/apache2/conf-available/ | |
nano phppgadmin.conf | |
ALLOW FROM ALL | |
// Step 4 - Configure phpPgAdmin | |
cd /etc/phppgadmin/ | |
nano config.inc.php | |
$conf['extra_login_security'] = false; | |
// Step 5 - Restart PostgreSQL and Apache2 | |
systemctl restart postgresql | |
systemctl restart apache2 | |
// Меняем порт для апач2 | |
vim /etc/apache2/ports.conf | |
// Базовые npm модули глобально | |
npm i -g nodemon forever babel-cli | |
// Запуск nodemon c babel-node | |
nodemon server.js --exec babel-node | |
// Запуск forever c babel-node | |
forever start -c babel-node server.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment