随笔分类 -  运维

服务器运维
摘要:#### 1. 下载gitlab-runner >下载地址: https://docs.gitlab.cn/runner/install/ # 本文仅演示 deb包安装 # 下载deb安装包 执行安装命令 dpkg -i gitlab-runner_xxx.deb #### 2. 注册gitlab- 阅读全文
posted @ 2023-05-14 00:25 gz_xiaohai 阅读(904) 评论(0) 推荐(0) 编辑
摘要:#### 1. 下载gitlab镜像 docker pull gitlab/gitlab-ce #### 2. 设置docker-compose.yml version: '3.6' services: gitlab: image: 'gitlab/gitlab-ce:latest' restart 阅读全文
posted @ 2023-05-13 22:47 gz_xiaohai 阅读(327) 评论(0) 推荐(0) 编辑
摘要:1. 共享宿主机网络 host # docker-compose.yml中设置 network_mode: host # 此时端口配置 ports 失效 2. 桥接网络 bridge(默认) # 自定义桥接网络 docker network create webnet_db # 数据库服务 使用上面 阅读全文
posted @ 2023-04-24 21:34 gz_xiaohai 阅读(1058) 评论(0) 推荐(0) 编辑
摘要:#### 1. 配置扩展目录 1. odoo 配置文件 /opt/odoo/config/odoo.conf # 内容 [options] addons_path = /mnt/extra-addons db_host = localhost db_user = odoo db_name = odo 阅读全文
posted @ 2023-04-19 19:34 gz_xiaohai 阅读(457) 评论(0) 推荐(0) 编辑
摘要:1. linux软件源配置 # debian软件源 RUN sed -i 's/deb.debian.org/repo.huaweicloud.com/g' /etc/apt/sources.list apt update 2. pip源配置 pip install -i https://repo. 阅读全文
posted @ 2023-04-12 01:52 gz_xiaohai 阅读(75) 评论(0) 推荐(0) 编辑
摘要:1. docker容器进入root用户 docker exec -it --user root xxx bash 2. compose # 启动服务 docker-compose up -d # 停止删除服务 docker-compose down 阅读全文
posted @ 2023-04-10 23:58 gz_xiaohai 阅读(28) 评论(0) 推荐(0) 编辑
摘要:1. docker-compose.yml配置 version: '3.1' services: web: image: odoo:14 depends_on: - mydb ports: - "8069:8069" network_mode: host environment: - HOST=my 阅读全文
posted @ 2023-04-10 17:22 gz_xiaohai 阅读(730) 评论(0) 推荐(0) 编辑
摘要:基本上 vi 共分为三种模式,分别是『一般模式』、『编辑模式』与『指令列命令模式』。 这三种模式的作用分别是: 一般模式:以 vi 打开一个档案就直接进入一般模式了(这是默认的模式)。在这个模式中, 你可以使用『上下左右』按键来移动光标,你可以使用『删除字符』或『删除整行』来处理档案内容, 也可以使 阅读全文
posted @ 2015-12-25 19:02 gz_xiaohai 阅读(350) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示