mirror of
https://github.com/retspen/webvirtcloud
synced 2024-11-01 03:54:15 +00:00
Fix install CentOS
This commit is contained in:
parent
0b2359210f
commit
3616d860e2
1 changed files with 21 additions and 21 deletions
42
README.md
42
README.md
|
@ -54,30 +54,30 @@ wget -O - https://clck.ru/9V9fH | sudo sh
|
||||||
|
|
||||||
### Install WebVirtCloud panel (CentOS)
|
### Install WebVirtCloud panel (CentOS)
|
||||||
|
|
||||||
```
|
```bash
|
||||||
$ sudo yum -y install python-virtualenv python-devel libxml2-dev libvirt-devel glibc gcc nginx supervisor git libxml2 libxml2-devel git
|
sudo yum -y install python-virtualenv python-devel libxml2-dev libvirt-devel glibc gcc nginx supervisor git libxml2 libxml2-devel git
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Creating directories and cloning repo
|
#### Creating directories and cloning repo
|
||||||
|
|
||||||
```
|
```bash
|
||||||
mkdir /srv && cd /srv
|
sudo mkdir /srv && cd /srv
|
||||||
git clone https://github.com/retspen/webvirtcloud && cd webvirtcloud
|
sudo git clone https://github.com/retspen/webvirtcloud && cd webvirtcloud
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Start installation webvirtcloud
|
#### Start installation webvirtcloud
|
||||||
```
|
```
|
||||||
virtualenv venv
|
sudo virtualenv venv
|
||||||
source venv/bin/activate
|
sudo source venv/bin/activate
|
||||||
pip install -r conf/requirements.txt
|
sudo pip install -r conf/requirements.txt
|
||||||
cp conf/nginx/webvirtcloud.conf /etc/nginx/conf.d/
|
sudo cp conf/nginx/webvirtcloud.conf /etc/nginx/conf.d/
|
||||||
python manage.py migrate
|
sudo python manage.py migrate
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Configure the supervisor for CentOS
|
#### Configure the supervisor for CentOS
|
||||||
Add the following after the [include] line (after **files = ... ** actually):
|
Add the following after the [include] line (after **files = ... ** actually):
|
||||||
```
|
```bash
|
||||||
vim /etc/supervisord.conf
|
sudo vim /etc/supervisord.conf
|
||||||
|
|
||||||
[program:webvirtcloud]
|
[program:webvirtcloud]
|
||||||
command=/srv/webvirtcloud/venv/bin/gunicorn webvirtcloud.wsgi:application -c /srv/webvirtcloud/gunicorn.conf.py
|
command=/srv/webvirtcloud/venv/bin/gunicorn webvirtcloud.wsgi:application -c /srv/webvirtcloud/gunicorn.conf.py
|
||||||
|
@ -152,29 +152,29 @@ server {
|
||||||
|
|
||||||
Change permissions so nginx can read the webvirtcloud folder:
|
Change permissions so nginx can read the webvirtcloud folder:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
chown -R nginx:nginx /srv/webvirtcloud
|
sudo chown -R nginx:nginx /srv/webvirtcloud
|
||||||
```
|
```
|
||||||
|
|
||||||
Add required user to the kvm group:
|
Add required user to the kvm group:
|
||||||
```
|
```bash
|
||||||
usermod -G kvm -a webvirtmgr
|
sudo usermod -G kvm -a webvirtmgr
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
#### Install final required packages for libvirtd and others
|
#### Install final required packages for libvirtd and others
|
||||||
```
|
```bash
|
||||||
wget -O - https://clck.ru/9V9fH | sudo sh
|
wget -O - https://clck.ru/9V9fH | sudo sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Let's restart nginx and the supervisord services:
|
Let's restart nginx and the supervisord services:
|
||||||
```
|
```bash
|
||||||
systemctl restart nginx && systemctl restart supervisord
|
sudo systemctl restart nginx && systemctl restart supervisord
|
||||||
```
|
```
|
||||||
|
|
||||||
And finally, check everything is running:
|
And finally, check everything is running:
|
||||||
```
|
```bash
|
||||||
supervisorctl status
|
sudo supervisorctl status
|
||||||
|
|
||||||
gstfsd RUNNING pid 24187, uptime 2:59:14
|
gstfsd RUNNING pid 24187, uptime 2:59:14
|
||||||
novncd RUNNING pid 24186, uptime 2:59:14
|
novncd RUNNING pid 24186, uptime 2:59:14
|
||||||
|
|
Loading…
Reference in a new issue