基于AD认证的samba共享 By duncan21Posted on 2023 年 7 月 11 日2023 年 8 月 16 日Posted in LinuxTagged ad, ldap, sambaNo Comments on 基于AD认证的samba共享 目标:现要求Centos7服务器加入AD域并实现基于AD认证的samba共享 环境: Windows Server 2012(AD域控制器) 域名:huiju.com 主机名:win201[……] 阅读全文 Read More
VMware中三种磁盘规格 By duncan21Posted on 2023 年 5 月 8 日2025 年 9 月 2 日Posted in LinuxTagged 硬盘No Comments on VMware中三种磁盘规格 VMware vSphere中三种磁盘规格: (1)厚置备延迟置零 (Thick Provision Lazy Zeroed) (2)厚置备快速置零 (Thick Provision E[……] 阅读全文 Read More
网页批量下载文件 By duncan21Posted on 2023 年 4 月 19 日Posted in LinuxNo Comments on 网页批量下载文件 需求:今天需要下载下面这个页面中所有rpm文件 解决:利用wget实现比较简单 #!/bin/bash cd /tmp/base wget -r -np -nd -c -U "Mo[......]阅读全文 Read More
正则匹配ip By duncan21Posted on 2022 年 11 月 3 日Posted in LinuxTagged ipNo Comments on 正则匹配ip 基本思路就是要每个点之间的元素为整数,最多为3位整数[0-9]\{1,3\},然后用 . 拼接起来,加上^和$更精确的限制匹配对象 [root@ilovelluvia re]# cat ip.t[……] 阅读全文 Read More
文本文件转化为HTML文件 By duncan21Posted on 2022 年 11 月 3 日2024 年 7 月 16 日Posted in LinuxTagged html, txtNo Comments on 文本文件转化为HTML文件 目标:将teacher.db转换成html格式文档 [root@ilovelluvia re]# cat teacher.db J Luo:Southeast University:Nan[……] 阅读全文 Read More
英语常见字符读法 By duncan21Posted on 2022 年 10 月 1 日Posted in LinuxNo Comments on 英语常见字符读法 英语常见字符读法 点: dot, /: slash. \: backslash 逗号: comma 冒号: colon 分号: semicolon 问号: question[……] 阅读全文 Read More
debian11配置优化 By duncan21Posted on 2022 年 7 月 26 日2022 年 11 月 21 日Posted in LinuxTagged bulleye, debian, debian11No Comments on debian11配置优化 1)更新升级系统 apt update apt upgrade 2)设置apt源为国内地址,将配置文件vim /etc/apt/sources.list替换为下面的内容 deb https[......]阅读全文 Read More
mkdocs增加pdf功能 By duncan21Posted on 2022 年 5 月 27 日2022 年 6 月 14 日Posted in LinuxTagged mkdocs-pdfNo Comments on mkdocs增加pdf功能 前言: 因工作需要,需要将mkdocs站点的内容在构建后,导出为一份pdf文件,所以需要重新构建镜像 完整的dockerfile: # Copyright (c) 2016-2022 Mar[......]阅读全文 Read More
docker部署mkdocs By duncan21Posted on 2022 年 4 月 22 日2022 年 4 月 22 日Posted in LinuxTagged mkdocsNo Comments on docker部署mkdocs MkDocs是一个快速、简单、华丽的静态网站生成器,适用于构建项目文档。 文档源文件以Markdown编写,并使用一个YAML文件来进行配置。MkDocs生成完全静态的HTML网站,官方的不太好看,[……] 阅读全文 Read More
openLDAP(AD)+nginx+svn认证 By duncan21Posted on 2022 年 3 月 22 日2025 年 9 月 2 日Posted in LinuxTagged ad, ldap, openldapNo Comments on openLDAP(AD)+nginx+svn认证 LDAP是一款轻量级目录访问协议(Lightweight Directory Access Protocol,简称LDAP),属于开源集中账号管理架构的实现,且支持众多系统版本,被广大互联网公司所采用[……] 阅读全文 Read More
Docker实现PHP开发环境 By duncan21Posted on 2022 年 1 月 4 日2022 年 3 月 2 日Posted in LinuxTagged docker, mysql, nginx, php8, redisNo Comments on Docker实现PHP开发环境 环境准备: #docker的版本 [root@10-10-20-236 /]# docker info|grep Version Server Version: 20.10.8 Cgrou[……] 阅读全文 Read More
Oracle12c安装应用 By duncan21Posted on 2021 年 12 月 9 日2023 年 8 月 18 日Posted in LinuxTagged 12c, oracleNo Comments on Oracle12c安装应用 2种方式安装Oracle A.容器安装 B.宿主机安装 系统环境: [root@oracle12c216 ~]# cat /etc/redhat-release[……] 阅读全文 Read More
OpenVPN-2.4.11-基于MySQL用户认证 By duncan21Posted on 2021 年 11 月 20 日2023 年 8 月 2 日Posted in LinuxTagged openvpnNo Comments on OpenVPN-2.4.11-基于MySQL用户认证 不同VPN隧道身份认证、数据加密、数据验证区别如下表所示: 01 PPTP VPN 点对点隧道协议(PPTP)是由包括微软和3com等公司组成的PPTP论坛开发[……] 阅读全文 Read More
lCentOS7升级内核与开启BBR By duncan21Posted on 2021 年 10 月 20 日2025 年 9 月 2 日Posted in LinuxTagged kernel, linode, 内核No Comments on lCentOS7升级内核与开启BBR 安装elrepo提供的最新kernel 增加elrepo源 cat > /etc/yum.repos.d/elrepo.repo << EOF [elrepo-kernel][......]阅读全文 Read More
升级OpenSSL By duncan21Posted on 2021 年 9 月 11 日2021 年 10 月 23 日Posted in LinuxTagged opensslNo Comments on 升级OpenSSL #CentOS7的OpenSSL软件版本比较低 [root@instance-20210823-2231 ~]# openssl version OpenSSL 1.0.2k-fips 26 J[……] 阅读全文 Read More
centos7扩充swap By duncan21Posted on 2021 年 8 月 31 日2021 年 10 月 28 日Posted in LinuxTagged swapNo Comments on centos7扩充swap swap扩容 如果系统的物理内存用光了,系统就会跑得很慢,但仍能运行;如果Swap空间用光了,那么系统就会发生错误。 例如,Swap空间用完,则服务进程无法启动,通常会出现“application[……] 阅读全文 Read More
alias的用法 By duncan21Posted on 2021 年 7 月 2 日2021 年 7 月 2 日Posted in LinuxTagged aliasNo Comments on alias的用法 为啥使用alias? alias命令用来设置指令的别名。我们可以使用该命令可以将一些较长的命令进行简化。使用alias时,用户必须使用单引号”将原来的命令引起来,防止特殊字符导致错误 &nb[……] 阅读全文 Read More
斗罗大陆Jenkins部署 By duncan21Posted on 2021 年 6 月 22 日2021 年 12 月 13 日Posted in LinuxTagged ant, java, jdk8, jenkins, protobufNo Comments on 斗罗大陆Jenkins部署 环境准备: OS: CentOS Linux release 7.9.2009 (Core) 关闭selinux 一,Jenkins部署 检查java环境,Jenkins由java[……] 阅读全文 Read More
centos命令行常用快捷键 By duncan21Posted on 2021 年 6 月 10 日Posted in LinuxTagged 常用命令No Comments on centos命令行常用快捷键 Ctrl + u 删除光标之前到行首的字符 Ctrl + k 删除光标之前到行尾的字符 Ctrl + c 取消当前行输[......]阅读全文 Read More
Centos7重置root密码 By duncan21Posted on 2021 年 6 月 7 日Posted in LinuxTagged passwd, 重置密码No Comments on Centos7重置root密码 1)启动Linux Centos7系统,当出现如下画面时,直接按“e”键继续 2)在如下截图的位置,添加“rw single init=/bin/bash”,添加后按“Ctrl + x”[……] 阅读全文 Read More