Skip to content

Commit

Permalink
auto install webssh modify
Browse files Browse the repository at this point in the history
  • Loading branch information
guohongze committed Jan 9, 2019
1 parent 03c9c4e commit bb8a30f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ centos 7.2(1511) django 1.11.16 python 2.7<br>
生产服务器建议 4核CPU,6G内存以上.<br>
学习测试建议 2核CPU,2G内存以上.<br>
服务器操作系统版本要求 centos7.2及以上<br>
安装之前请关闭防火墙<br>
```
git clone https://github.com/guohongze/adminset.git
adminset/install/server/auto_install.sh
Expand Down
11 changes: 5 additions & 6 deletions install/server/auto_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ else
fi
scp $adminset_dir/install/server/ansible/ansible.cfg /etc/ansible/ansible.cfg

# install webssh
cd $adminset_dir/vendor/webssh/
/usr/bin/env python setup.py install
scp /var/opt/adminset/main/install/server/webssh/webssh.service /usr/lib/systemd/system/webssh.service
/bin/systemctl enable webssh.service

#安装数据库
echo "####install database####"
echo "installing a new mariadb...."
Expand Down Expand Up @@ -102,6 +96,11 @@ source /etc/profile
scp $adminset_dir/install/server/adminset.service /usr/lib/systemd/system
/bin/systemctl enable adminset.service

# install webssh
cd $adminset_dir/vendor/webssh/
/usr/bin/env python setup.py install
scp /var/opt/adminset/main/install/server/webssh/webssh.service /usr/lib/systemd/system/webssh.service
/bin/systemctl enable webssh.service

#安装redis
echo "####install redis####"
Expand Down

0 comments on commit bb8a30f

Please sign in to comment.