Skip to content

Instantly share code, notes, and snippets.

@ortsed
Created October 2, 2015 19:36
Show Gist options
  • Select an option

  • Save ortsed/9818cf89b7fc3cec5f39 to your computer and use it in GitHub Desktop.

Select an option

Save ortsed/9818cf89b7fc3cec5f39 to your computer and use it in GitHub Desktop.
Django setup script
#installation
yum update
yum install gcc mysql-devel python-devel mariadb-server mysql MySQL-python git
yum install epel-release
yum install nginx
easy_install Django pip uwsgi
#yum groupinstall 'Development Tools'
#First Run
mysql_install_db
#chown -R mysql /var/lib/mysql
#chgrp -R mysql /var/lib/mysql
#Startup
/usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=root --log-error=/var/log/mariadb/mariadb.log --pid-file=/var/run/mariadb/mariadb.pid --socket=/var/lib/mysql/mysql.sock
--general-log=/www/logs/mysql.log
--slow-query-log --slow-query-log-file=/www/logs/mysql-slow-query.log
adduser www
#uwsgi --http :8000 --wsgi-file /www/govdata/govdata/wsgi.py --chdir /www/govdata/ --master --uid www --pidfile /tmp/uwsgi.pid
#su www -c 'initdb'
#su www -c 'createdb'
#su www -c 'pg_ctl start -D /usr/local/pgsql/data -l /www/logs/postgres.log'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment