|
1
|
yum -y install python-devel libxslt-devel libffi-devel openssl-devel |
|
1
2
3
4
5
6
7
8
9
10
11
|
tar -xf Python-2.7.5.tar.gzcd Python-2.7.5./configure --enable-sharedmake && make installln -s /usr/local/bin/python /usr/bin/unzip setuptools-36.4.0.zipcd setuptools-36.4.0.0python setup.py installtar -xf pip-9.0.1.tar.gzcd pip-9.0.1python setup.py install |
|
1
|
pip install git-webhook |
|
1
2
|
gitwebhook configOK: init configuration file into `/root/.git-webhook/git_webhook_config.py`. |
|
1
|
yum -y install mysql mysql-server redis |
|
1
|
CREATE DATABASE IF NOT EXISTS git_webhook default character set utf8 COLLATE utf8_general_ci; |
|
1
|
grant all privileges on git_webhook.* to dev@'localhost' identified by 'test'; |
|
1
2
3
4
5
6
7
|
vim .git-webhook/git_webhook_config.pymysql用户名:dev 密码:testDATABASE_URI = 'mysql+pymysql://dev:test@127.0.0.1/git_webhook'redis密码:testCELERY_BROKER_URL = 'redis://:test@127.0.0.1:6379/0'CELERY_RESULT_BACKEND = 'redis://:test@127.0.0.1:6379/0'SOCKET_MESSAGE_QUEUE = 'redis://:test@127.0.0.1:6379/0' |
|
1
2
|
gitwebhook createdbOK: database is initialed. |
|
1
2
3
|
gitwebhook runserver &wsgi starting up on http://172.31.23.92:18340gitwebhook celery & 这个是用于异步执行任务 |
本文详细介绍如何在服务器上安装并配置Git-Webhook服务,包括安装必要的依赖、编译安装Python 2.7和pip、安装Git-Webhook、配置数据库及Redis,并最终启动服务。
1806

被折叠的 条评论
为什么被折叠?



