mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-01-13 07:01:20 +08:00
INSTALL
This commit is contained in:
37
INSTALL.md
37
INSTALL.md
@@ -1,11 +1,15 @@
|
||||
## Ubuntu 14.04 amd64
|
||||
### Core
|
||||
|
||||
apt-get install python-software-properties software-properties-common
|
||||
add-apt-repository ppa:chris-lea/node.js
|
||||
apt-get update
|
||||
apt-get upgrade
|
||||
|
||||
apt-get install nodejs git mongodb memcached nginx python g++ make
|
||||
|
||||
apt-get install nodejs git mongodb memcached nginx postfix
|
||||
apt-get install python g++ make screen git wget zip unzip iftop unrar-free axel vim emacs subversion subversion-tools curl tmux mercurial
|
||||
apt-get install ntp quota quotatool
|
||||
|
||||
adduser rpadmin
|
||||
usermod -G rpadmin -a www-data
|
||||
@@ -22,18 +26,35 @@
|
||||
rm /etc/nginx/sites-enabled/default
|
||||
cat > /etc/nginx/sites-available/rpadmin
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server ipv6only=on;
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server ipv6only=on;
|
||||
|
||||
server_name DOMAIN;
|
||||
server_name DOMAIN;
|
||||
|
||||
location / {
|
||||
proxy_pass http://unix:/home/rpadmin/rootpanel.sock:/;
|
||||
location / {
|
||||
proxy_pass http://unix:/home/rpadmin/rootpanel.sock:/;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ln -s /etc/nginx/sites-available/rpadmin /etc/nginx/sites-enabled
|
||||
service nginx restart
|
||||
|
||||
vi /etc/fstab
|
||||
|
||||
usrquota
|
||||
|
||||
reboot
|
||||
|
||||
ln -s /dev/xvda /dev/root
|
||||
quotacheck -am
|
||||
quotaon -au
|
||||
|
||||
make start
|
||||
|
||||
### Runtime
|
||||
|
||||
apt-get install golang
|
||||
|
||||
apt-get install python python3 python3-pip python-dev python3-dev
|
||||
pip install django tornado markdown python-memcached web.py mongo uwsgi virtualenv virtualenvwrapper flask gevent jinja2 requests
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
vi /etc/sudoers
|
||||
|
||||
rpadmin ALL=(ALL) NOPASSWD: ALL
|
||||
rpadmin ALL=(ALL) NOPASSWD: ALL
|
||||
|
||||
Reference in New Issue
Block a user