Fork me on GitHub
随笔 - 234  文章 - 49 评论 - 0 阅读 - 13万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  Linux

1 2 下一页
vmware与主机克隆
摘要:目录vmware与主机克隆一 实现虚拟机与hosts主机配置文件挂载通信1.配置虚拟机挂载信息2.配置vmware创建共享目录3.实现虚拟机挂载hosts主机目录二 linux机器配置开机自动启动脚本三 配置修改ip脚本文件 vmware与主机克隆 工作中会遇到一些情况,比如部署多套集群,需要测试环 阅读全文
posted @ 2024-09-02 23:24 anyux 编辑
Nginx 的编译并打包成二.txt
摘要:Nginx 的编译并打包成二进制文件是一个涉及源代码编译和静态链接的过程。‌下面是一个简单的步骤说明,‌帮助你从源代码编译 Nginx 并生成一个可独立运行的二进制文件。‌ 安装依赖 首先,‌确保你的系统上安装了编译 Nginx 所需的依赖项。‌对于大多数 Linux 发行版,‌你可能需要安装 GC 阅读全文
posted @ 2024-08-28 23:42 anyux 编辑
shell 内容
摘要:内容概述 目录内容概述1 编程基础1.1 程序组成1.2 程序编程风格1.3 编程语言1.4 编程逻辑处理方式2 shell 脚本语言的基本用法2.1 shell 脚本的用途2.2 shell 脚本基本结构2.3 shell脚本创建过程2.4 shell 脚本注释规范2.5 第一个 shell 脚本 阅读全文
posted @ 2024-08-25 22:41 anyux 编辑
ansible 获取变量与用户环境变量文件
摘要:目录常见的用户环境变量文件及其作用加载顺序和优先级总结使用lineinfile模块设置环境变量 这里有个小知识点 在 Linux 系统中,用户环境变量文件是用来设置用户级别的环境变量和 shell 配置的文件。这些文件可以控制用户的环境,包括路径、命令别名、shell 提示符、自定义函数等。不同的文 阅读全文
posted @ 2024-08-13 23:13 anyux 编辑
创建sshd服务容器,并使宿主机与容器免密通信
摘要:#docker 创建私有网络,用于将来docker创建的容器指定静态ip docker network create --driver bridge --subnet=192.168.1.0/24 --gateway=192.168.1.1 my_custom_network 部署一个名为my_ss 阅读全文
posted @ 2024-07-29 21:39 anyux 编辑
基于centos8镜像,打包php的docker镜像
摘要:创建镜像构建目录 mkdir -p /opt/docker/php cd /opt/docker/php 下载php软件包 wget http://cn2.php.net/distributions/php-7.2.33.tar.gz -P /opt/docker/php 编写Dockerfile文 阅读全文
posted @ 2021-12-20 19:09 anyux 编辑
nginx添加https模块
摘要:nginx添加https模块 在配置文件nginx.conf,开启了https监听后,nginx -t检查报错如下,表明ssl参数需要使用ngx_http_ssl_module nginx: [emerg] the "ssl" parameter requires ngx_http_ssl_modu 阅读全文
posted @ 2021-12-17 13:54 anyux 编辑
2020-1-08.运维面试题总结
摘要:categories: 面试题目 tags: 运维 [TOC] Linux查看系统开机时间 bash who b system boot Jan 8 08:47 who r run level 5 Jan 8 08:47 last reboot reboot system boot 5.0.0 37 阅读全文
posted @ 2020-01-16 15:55 anyux 编辑
rsync
摘要:https://www.centos.bz/2017/09/rsync build centos mirror/ 同步镜像 https://blog.csdn.net/bbwangj/article/details/80618726 阅读全文
posted @ 2019-12-22 11:52 anyux 编辑
linux问题集
摘要:[toc] Delta RPMs disabled because /usr/bin/applydeltarpm not installed 阅读全文
posted @ 2019-12-08 20:02 anyux 编辑
centos7新系统配置
摘要:[toc] 初始化配置 配置镜像 安装常用工具 systemd systemd提供更优秀的框架以表示系统服务间的依赖关系 实现系统初始化时服务的并行启动,同时达到降低Shell的系统开销的效果 systemd的目标是:尽可能启动更少进程;尽可能将更多进程并行启动。 systemd尽可能减少对shel 阅读全文
posted @ 2019-12-07 12:58 anyux 编辑
linux免密钥登录
摘要:[toc] linux免密钥登录原理 1.本机生成密钥和公钥 2.把公钥传递给远程主机 3.主机把公钥追加进免检名单 上面为第一次配置的时候 配置完毕以后只用下面的步骤 4.本机请求远程主机 5.远程主机去免检名单里找到所属公钥 6.生成用公钥加密后的字符串传回本机 7.本机使用私钥进行解密 8.本 阅读全文
posted @ 2019-12-05 17:07 anyux 编辑
python脚本自动删除老文件
摘要:``` #!/usr/bin/env python2 #-*- coding:UTF-8 -*- import subprocess import os import datetime #python获取磁盘信息 #磁盘最大使用阈值 max_size = 20 abs_path="/root" temp_str="test" #定义删除日志文件 del_log = "del_log.txt" #检 阅读全文
posted @ 2019-11-26 16:39 anyux 编辑
shell脚本自动删除老文件
摘要:根据磁盘使用率,删除日期较老的文件 !/bin/bash 设置磁盘使用比例 max_size=18 设置文件存储目录 tmp_data=/root/ 文件日志前缀 pre_file=test 数组长度 arr_len=0 获取磁盘使用比率 a=0 int=0 删除文件名 tmp_del='' 删除文 阅读全文
posted @ 2019-11-26 14:05 anyux 编辑
vim基本配置
摘要:``` cat >~/.vimrc<<EOF set ts=4 set nu set autoindent set cindent EOF source ~/.vimrc ``` 阅读全文
posted @ 2019-11-24 15:36 anyux 编辑
Install ping command from ubuntu docker
摘要:apt-get install inetutils-ping 阅读全文
posted @ 2019-11-04 11:08 anyux 编辑
In container,I can't use man
摘要:in container,I can't use man in ubuntu image ,by search i find this link to slove the problem how to use man in centos image? I find this link remove 阅读全文
posted @ 2019-11-04 11:01 anyux 编辑
centos install glances
摘要:python and pip install flollow this link https://www.cnblogs.com/anyux/articles/10944129.html error I got the infomation ,so install gcc lib [root@79f 阅读全文
posted @ 2019-11-03 16:23 anyux 编辑
centos 服务器命令下安装GUI
摘要:第一步:配置YUM源。 无论是使用网络YUM源还是使用CentOS的ISO光盘映像构建本地YUM源。 挂载命令 配置本地yum源 参数说明: [LocalRepo] # 该部分的名称name # 存储库的名称baseurl # 包裹的位置enabled # 启用存储库gpgcheck # 启用安全安 阅读全文
posted @ 2019-10-30 21:48 anyux 编辑

1 2 下一页
点击右上角即可分享
微信分享提示