浏览代码

补充文档

jxing 4 年之前
父节点
当前提交
8b0ce32927

+ 3 - 2
docs/dev/data-center/relations/belongs/Sh2Sh.md

@@ -2,8 +2,9 @@
 ## 前置条件
     1. 竖井包含的有元空间(竖井在r_sh_contain_si表中有数据)
 ## 处理逻辑
-    1. 竖井包含有相同的元空间, 则认为两竖井贯通
-    (竖井包含元空间的数据是前端做划分)
+    1. 两两竖井对比, 前提条件: 对比的两竖井不能包含有相同的业务空间, 否则不能对比. (竖井包含元空间的数据是前端做划分)
+    2. 满足1之后, 如果其中一个竖井包含的业务空间与另一个竖井包含的业务空间在垂直方向上有重叠, 则认为这两个竖井有贯通关系
+    
 ## 函数
 
 <details>

+ 6 - 1
docs/setup/centos/server/postgresql-docker.md

@@ -723,7 +723,7 @@
 
     2. 运行
         mkdir -p /var/lib/postgresql/data
-        docker run -d -e POSTGRES_PASSWORD=123456 --restart=always --name pg12 -v /var/lib/postgresql/data:/var/lib/postgresql/data -p 5432:5432 mypg:1 postgres
+        docker run -d -e POSTGRES_PASSWORD=123456 --restart=on-failure:5 --name pg12 -v /var/lib/postgresql/data:/var/lib/postgresql/data -p 5432:5432 mypg:1 postgres
         
         -d表示后台执行 (容器有个特性, 如果你run容器时执行的命令结束的话, 容器则自动结束) 
         -e表示设置环境变量(此处为pg数据库密码)
@@ -766,6 +766,11 @@
         ctrl + P + Q (不关闭当前进程)
     8. 修改容器配置
         docker update --restart=always pg12    (设置容器的重启规则)
+                      --restart=on-failure:5
+    9. Dockerfile  给镜像内文件增加文本
+        sed -i '$a# comment' /etc/apt/sources.list      给/etc/apt/sources.list文件末尾追加 # comment
+        
+        
         
 ## 导出和载入镜像
     镜像的导入和导出是方便镜像的分享和迁移, 如果服务器网路不好或者pull不下来镜像,只能在其它网路比较好的机器上pull下来

+ 4 - 4
docs/setup/centos/server/postgresql.md

@@ -9,15 +9,15 @@
 使用yum命令添加PostgreSQL软件源。
 
 ```
-[root@localhost ~] yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
+[root@localhost ~] yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
 ```
 
 使用yum命令安装PostgreSQL。
 
 ```
-[root@localhost ~] yum install postgresql12
-[root@localhost ~] yum install postgresql12-server
-[root@localhost ~] yum install postgresql12-contrib
+[root@localhost ~] yum install -y postgresql12
+[root@localhost ~] yum install -y postgresql12-server
+[root@localhost ~] yum install -y postgresql12-contrib
 ```
 
 初始化数据库。

+ 16 - 8
docs/setup/centos/server/python.md

@@ -6,25 +6,33 @@
 
 CentOS7默认软件源中没有Python3,要安装Python3需首先安装epel软件源,非root账户下请使用 sudo yum install epel-release 。
 ```
-[root@localhost ~] yum install epel-release
+[root@localhost ~] yum install -y epel-release
 ```
 
 使用 yum 安装 Python3
 
 ```
-[root@localhost ~] yum install python36
+[root@localhost ~] yum install -y python36
 ```
 
 ### 安装 Python 依赖库
 使用 pip3 命令安装项目需要用到的 Python 依赖库
 ```
-[root@localhost ~] pip3 install vg
-[root@localhost ~] pip3 install numpy
-[root@localhost ~] pip3 install matplotlib
-[root@localhost ~] pip3 install shapely
-[root@localhost ~] pip3 install networkx
-[root@localhost ~] pip3 install jieba
+[root@localhost ~] pip3 install vg -i https://pypi.tuna.tsinghua.edu.cn/simple
+[root@localhost ~] pip3 install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple
+[root@localhost ~] pip3 install matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple
+[root@localhost ~] pip3 install shapely -i https://pypi.tuna.tsinghua.edu.cn/simple
+[root@localhost ~] pip3 install networkx -i https://pypi.tuna.tsinghua.edu.cn/simple
+[root@localhost ~] pip3 install jieba -i https://pypi.tuna.tsinghua.edu.cn/simple
 [root@localhost ~] pip3 install short-text-sim -i http://dev.dp.sagacloud.cn:8082/repository/saga-pypi-group/simple --trusted-host dev.dp.sagacloud.cn
+
+安装公司的python私有库, 先安装git, 找到python3 的site-packages目录, cd进去
+[root@localhost ~] yum install -y git
+[root@localhost ~] find / -name site-packages 
+[root@localhost ~] cd /usr/lib64/python3.6/site-packages     (此处的路径可能会不同, 根据情况改变)
+[root@localhost site-packages] git clone http://39.106.8.246:3003/chenhaiyang/relations.git
+
+
 ```
 ### 安装过程遇到的问题