摘要: 代码文件setup_c.py如下 from distutils.core import setup from Cython.Build import cythonize import os import shutil def all_path(dirname): result = [] # 所有的文 阅读全文
posted @ 2020-10-16 11:06 bhxuwei 阅读(626) 评论(0) 推荐(0)
摘要: nginx.conf文件配置(/etc/nginx/nginx.conf) user root; worker_processes 2; events { worker_connections 1024; } http { #user root; include mime.types; defaul 阅读全文
posted @ 2020-10-16 10:55 bhxuwei 阅读(1006) 评论(0) 推荐(0)
摘要: 编辑gitlab配置文件 使用gitlab内置的nginx,修改nginx默认端口,从80变为82。 由于这时候进行了上述的配置,因此,修改下列文件会改变默认值。同时,如果重新运行gitlab-ctl reconfigure,修改并不会被覆盖。 vi /etc/gitlab/gitlab.rb ng 阅读全文
posted @ 2020-10-16 10:52 bhxuwei 阅读(3420) 评论(0) 推荐(0)
摘要: ## python镜像源 ``` 阿里云 http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ douban http://pypi.douban.com/simple Pytho 阅读全文
posted @ 2020-10-15 15:48 bhxuwei 阅读(111) 评论(0) 推荐(0)
摘要: #!/bin/bash sourFolder="/home/xuwei/video_zimu/data/" targetFolder="/home/xuwei/video_zimu/zimu_file/" for file in `ls | find ${sourFolder} -name '*.s 阅读全文
posted @ 2020-10-10 16:52 bhxuwei 阅读(271) 评论(0) 推荐(0)
摘要: Elasticsearch 基本概念 Index:Elasticsearch用来存储数据的逻辑区域,它类似于关系型数据库中的database 概念。一个index可以在一个或者多个shard上面,同时一个shard也可能会有多个replicas。 Document:Elasticsearch里面存储 阅读全文
posted @ 2020-08-12 16:10 bhxuwei 阅读(233) 评论(0) 推荐(0)
摘要: 使用tar 1、压缩文件 tar -zcvf test.tar.gz ./test/ 该命令表示压缩当前文件夹下的文件夹test,压缩后缀名为test.tar.gz 如果不需要压缩成gz,只需要后缀为tar格式的,那么输入如下命令: tar -cvf test.tar ./test/ 2、解压文件 阅读全文
posted @ 2020-08-06 18:21 bhxuwei 阅读(1936) 评论(0) 推荐(0)
摘要: 服务器安装 1、使用以下命令即可进行mysql安装,注意安装前先更新一下软件源以获得最新版本: $ sudo apt-get update #更新软件源 $ sudo apt-get install mysql-server #安装mysql5.7 2、启动和关闭mysql服务器: $ servic 阅读全文
posted @ 2020-08-06 18:05 bhxuwei 阅读(184) 评论(0) 推荐(0)