Skip to content

Commit c936d66

Browse files
committed
add some installation instructions
1 parent 5a91c20 commit c936d66

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,41 @@
2626

2727
## Installation
2828

29+
Let's use Centos 7 as an example. (please help us to test on Ubuntu or other linux distros)
30+
31+
### For the Controller
32+
33+
To install libvirt-python, we should install libvirt-devel and python-devel fisrt:
34+
35+
```bash
36+
yum install -y libvirt-devel python-devel
37+
```
38+
39+
Then download codes and install requirements(venv is recommended, and make sure all the following steps are executed in venv):
40+
41+
```bash
42+
git clone https://github.com/pyajs/closestack.git
43+
cd closestack
44+
pip install -r requirements.txt
45+
```
46+
47+
Install uwsgi:
48+
49+
```bash
50+
pip install uwsgi
51+
```
52+
53+
Modify configs in `config.py`(instruction included) and `uwsgi.ini` file.
54+
55+
Start the server with command:
56+
57+
```bash
58+
uwsgi uwsgi.ini
59+
```
60+
61+
62+
### For the nodes
63+
2964

3065
## Configuration
3166

0 commit comments

Comments
 (0)