Last active
August 29, 2015 14:14
-
-
Save nacady/7875face780822875404 to your computer and use it in GitHub Desktop.
commands for initial settings on AWS ref: http://qiita.com/nacady/items/072fb698e540ca9557a9
This file contains 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
# adduser vagrant | |
cp -r ~/.ssh ~vagrant/ | |
chown vagrant.vagrant -R ~vagrant/.ssh | |
visudo | |
# create db user | |
psql --host=endpoint --username=user --password --dbname=db | |
CREATE USER user WITH PASSWORD ''; | |
sudo yum install postgresql93-devel | |
# set some passwords to env | |
vi ~/.profile | |
export DB_PASSWORD=pass | |
# iptables (http, https) | |
sudo vi /etc/sysconfig/iptables | |
sudo service iptables restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment