Supervisor集中化管理web工具cesi安装配置

1$ wget https://github.com/gamegos/cesi/releases/download/v2.7.1/cesi-extended.tar.gz -O cesi.tar.gz 2 3$ tar -zxvf cesi.tar.gz 4$ python3.4 -m venv venv 5$ source venv/bin/activate 6 7$ (venv) [root@cesi cesi]# pip3.6 install -r requirements.txt 8 9=============================== 10=============================== 11 12 In file included from psycopg/psycopgmodule.c:28:0: 13 ./psycopg/psycopg.h:35:20: fatal error: Python.h: No such file or directory 14 #include <Python.h> 15 ^ 16 compilation terminated. 17 18 It appears you are missing some prerequisite to build the package from source. 19 20 You may install a binary package by installing 'psycopg2-binary' from PyPI. 21 If you want to install psycopg2 from source, please install the packages 22 required for the build and try again. 23 24 For further information please check the 'doc/src/install.rst' file (also at 25 <https://www.psycopg.org/docs/install.html>). 26 27 error: command 'gcc' failed with exit status 1 28 29 ---------------------------------------- 30Command "/root/cesi/venv/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-a7slmp24/psycopg2-binary/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-mhza7oxu-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/cesi/venv/include/site/python3.4/psycopg2-binary" failed with error code 1 in /tmp/pip-build-a7slmp24/psycopg2-binary/ 31You are using pip version 9.0.1, however version 20.2.4 is available. 32You should consider upgrading via the 'pip install --upgrade pip' command.

解决

$ yum install boost-python36-devel.x86_64   shiboken-python36-devel.x86_64 

创建虚拟环境安装成功 

1$(venv) [root@cesi cesi]# pip3.6 install -r requirements.txt 2 3WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3.6 install --user` instead. 4Collecting flask==1.0.4 (from -r requirements.txt (line 1)) 5 Using cached https://files.pythonhosted.org/packages/d8/94/7350820ae209ccdba073f83220cea1c376f2621254d1e0e82609c9a65e58/Flask-1.0.4-py2.py3-none-any.whl 6Collecting flask-sqlalchemy==2.4.3 (from -r requirements.txt (line 2)) 7 Using cached https://files.pythonhosted.org/packages/a6/b1/9da1c3c5417612b2fc4d25d55a225199c633d6492dac215b11b9021e6a8d/Flask_SQLAlchemy-2.4.3-py2.py3-none-any.whl 8Collecting psycopg2-binary==2.8.5 (from -r requirements.txt (line 3)) 9 Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f55bac7ddd8>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /packages/d3/8a/a7ed55c2c55bd4f5844d72734fedc0cef8a74518a0a19105a21c15628f1e/psycopg2_binary-2.8.5-cp36-cp36m-manylinux1_x86_64.whl 10 Downloading https://files.pythonhosted.org/packages/d3/8a/a7ed55c2c55bd4f5844d72734fedc0cef8a74518a0a19105a21c15628f1e/psycopg2_binary-2.8.5-cp36-cp36m-manylinux1_x86_64.whl (2.9MB) 11 100% |████████████████████████████████| 2.9MB 271kB/s 12Collecting pymysql==0.9.3 (from -r requirements.txt (line 4)) 13 Using cached https://files.pythonhosted.org/packages/ed/39/15045ae46f2a123019aa968dfcba0396c161c20f855f11dea6796bcaae95/PyMySQL-0.9.3-py2.py3-none-any.whl 14Collecting tomlkit==0.5.11 (from -r requirements.txt (line 5)) 15 Using cached https://files.pythonhosted.org/packages/7d/8c/c3ee9cd41b2df781b2dc39c31209724b4f04a3110b46531de2e661ace186/tomlkit-0.5.11-py2.py3-none-any.whl 16Collecting itsdangerous>=0.24 (from flask==1.0.4->-r requirements.txt (line 1)) 17 Using cached https://files.pythonhosted.org/packages/76/ae/44b03b253d6fade317f32c24d100b3b35c2239807046a4c953c7b89fa49e/itsdangerous-1.1.0-py2.py3-none-any.whl 18Collecting click>=5.1 (from flask==1.0.4->-r requirements.txt (line 1)) 19 Downloading https://files.pythonhosted.org/packages/d2/3d/fa76db83bf75c4f8d338c2fd15c8d33fdd7ad23a9b5e57eb6c5de26b430e/click-7.1.2-py2.py3-none-any.whl (82kB) 20 100% |████████████████████████████████| 92kB 715kB/s 21Collecting Werkzeug>=0.14 (from flask==1.0.4->-r requirements.txt (line 1)) 22 Downloading https://files.pythonhosted.org/packages/cc/94/5f7079a0e00bd6863ef8f1da638721e9da21e5bacee597595b318f71d62e/Werkzeug-1.0.1-py2.py3-none-any.whl (298kB) 23 100% |████████████████████████████████| 307kB 647kB/s 24Collecting Jinja2>=2.10 (from flask==1.0.4->-r requirements.txt (line 1)) 25 Downloading https://files.pythonhosted.org/packages/30/9e/f663a2aa66a09d838042ae1a2c5659828bb9b41ea3a6efa20a20fd92b121/Jinja2-2.11.2-py2.py3-none-any.whl (125kB) 26 100% |████████████████████████████████| 133kB 1.0MB/s 27Collecting SQLAlchemy>=0.8.0 (from flask-sqlalchemy==2.4.3->-r requirements.txt (line 2)) 28 Downloading https://files.pythonhosted.org/packages/08/4c/d81902b47d65c36d117c0ac8c4ce4f399e31ebacb9ed4c9e978fc017c0c9/SQLAlchemy-1.3.20-cp36-cp36m-manylinux1_x86_64.whl (1.3MB) 29 100% |████████████████████████████████| 1.3MB 467kB/s 30Collecting MarkupSafe>=0.23 (from Jinja2>=2.10->flask==1.0.4->-r requirements.txt (line 1)) 31 Downloading https://files.pythonhosted.org/packages/b2/5f/23e0023be6bb885d00ffbefad2942bc51a620328ee910f64abe5a8d18dd1/MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl 32Installing collected packages: itsdangerous, click, Werkzeug, MarkupSafe, Jinja2, flask, SQLAlchemy, flask-sqlalchemy, psycopg2-binary, pymysql, tomlkit 33Successfully installed Jinja2-2.11.2 MarkupSafe-1.1.1 SQLAlchemy-1.3.20 Werkzeug-1.0.1 click-7.1.2 flask-1.0.4 flask-sqlalchemy-2.4.3 itsdangerous-1.1.0 psycopg2-binary-2.8.5 pymysql-0.9.3 tomlkit-0.5.11 34 35$ yarn install 36-bash: yarn: command not found

安装npm

1安装npm 2$ yum install nodejs -y 3 4 5查看npm版本 6$ npm -v 73.10.10

安装yarn 

1$ npm install -g yarn 2npm WARN lifecycle yarn@1.22.10~preinstall: cannot run in wd %s %s (wd=%s) yarn@1.22.10 :; (node ./preinstall.js > /dev/null 2>&1 || true) /usr/lib/node_modules/.staging/yarn-c6781dde 3/usr/bin/yarn -> /usr/lib/node_modules/yarn/bin/yarn.js 4/usr/bin/yarnpkg -> /usr/lib/node_modules/yarn/bin/yarn.js 5/usr/lib 6└── yarn@1.22.10

构建ui

1$ yarn install 2yarn install v1.22.10 3[1/4] Resolving packages... 4[2/4] Fetching packages... 5info There appears to be trouble with your network connection. Retrying... 6error react-scripts@3.4.1: The engine "node" is incompatible with this module. Expected version ">=8.10". Got "6.17.1" 7error Found incompatible module. 8info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. 9 10$ npm install -g n 11/usr/bin/n -> /usr/lib/node_modules/n/bin/n 12/usr/lib 13└── n@6.7.0 14 15$ n stable 16 17 installing : node-v14.15.0 18 mkdir : /usr/local/n/versions/node/14.15.0 19 fetch : https://nodejs.org/dist/v14.15.0/node-v14.15.0-linux-x64.tar.xz 20 installed : v14.15.0 (with npm 6.14.8) 21 22Note: the node command changed location and the old location may be remembered in your current shell. 23 old : /usr/bin/node 24 new : /usr/local/bin/node 25To reset the command location hash either start a new shell, or execute PATH="$PATH"

构建成功 

1$ yarn install 2yarn install v1.22.10 3[1/4] Resolving packages... 4[2/4] Fetching packages... 5info fsevents@2.1.2: The platform "linux" is incompatible with this module. 6info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation. 7info fsevents@1.2.13: The platform "linux" is incompatible with this module. 8info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation. 9info fsevents@2.1.3: The platform "linux" is incompatible with this module. 10info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation. 11[3/4] Linking dependencies... 12warning " > bootstrap@4.5.0" has unmet peer dependency "jquery@1.9.1 - 3". 13warning " > bootstrap@4.5.0" has unmet peer dependency "popper.js@^1.16.0". 14warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta". 15[4/4] Building fresh packages... 16Done in 36.20s. 17 18 19$ yarn build 20yarn run v1.22.10 21$ react-scripts build 22Creating an optimized production build... 23Compiled successfully. 24 25File sizes after gzip: 26 27 84.42 KB build/static/js/2.51644260.chunk.js 28 22.47 KB build/static/css/2.0e1a4c73.chunk.css 29 6.33 KB (-1 B) build/static/js/main.9c1b72ba.chunk.js 30 775 B build/static/js/runtime-main.3de93520.js 31 296 B build/static/css/main.1584120f.chunk.css 32 33The project was built assuming it is hosted at /. 34You can control this with the homepage field in your package.json. 35 36The build folder is ready to be deployed. 37You may serve it with a static server: 38 39 yarn global add serve 40 serve -s build 41 42Find out more about deployment here: 43 44 bit.ly/CRA-deploy 45 46Done in 53.33s. 47 48$ cp /root/cesi/defaults/cesi.conf.toml /etc/cesi.conf.toml 49 50$ cp /root/cesi/defaults/cesi.service /etc/systemd/system/cesi.service 51 52$ sudo systemctl daemon-reload 53 54$ sudo systemctl start cesi
点赞
收藏

评论区

加载中...

相关推荐

MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1

文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s

Oracle 分组与拼接字符串同时使用

SELECTT.,ROWNUMIDFROM(SELECTT.EMPLID,T.NAME,T.BU,T.REALDEPART,T.FORMATDATE,SUM(T.S0)S0,MAX(UPDATETIME)CREATETIME,LISTAGG(TOCHAR(

MySQL部分从库上面因为大量的临时表tmp_table造成慢查询

背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_

皕杰报表之UUID

​在我们用皕杰报表工具设计填报报表时,如何在新增行里自动增加id呢?能新增整数排序id吗?目前可以在新增行里自动增加id,但只能用uuid函数增加UUID编码,不能新增整数排序id。uuid函数说明:获取一个UUID,可以在填报表中用来创建数据ID语法:uuid()或uuid(sep)参数说明:sep布尔值,生成的uuid中是否包含分隔符'',缺省为

手写Java HashMap源码

HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程22

2020年前端实用代码段,为你的工作保驾护航

有空的时候,自己总结了几个代码段,在开发中也经常使用,谢谢。1、使用解构获取json数据let jsonData  id: 1,status: "OK",data: 'a', 'b';let  id, status, data: number   jsonData;console.log(id, status, number )