上一页 1 2 3 4 5 6 ··· 12 下一页

编译内核出现错误cc1: error: code model kernel does not support PIC mode

摘要: 删除该模块目录下的 .cache.mk 文件就好了,重新 make 即可 阅读全文
posted @ 2022-04-15 14:52 狄成 阅读(934) 评论(0) 推荐(0) 编辑

nginx配置文件过大导致起不来

摘要: 更改src/core/ngx_conf_file.c,默认只有4k,将下面值改大重新编译 阅读全文
posted @ 2022-03-16 16:54 狄成 阅读(189) 评论(0) 推荐(0) 编辑

超2T硬盘使用gpt分区及做成lvm

摘要: 1、超过2T分区不能用fdisk了,用parted 分区格式化后对新的分区做lvm 阅读全文
posted @ 2022-03-11 16:51 狄成 阅读(452) 评论(0) 推荐(0) 编辑

centos7普通用户拥有root权限并登录执行脚本

摘要: 1、useradd test 2、passwd test 3、usermod -s 脚本绝对路径 test 4、vi /etc/passwd修改test用户的uid和gid为0 阅读全文
posted @ 2022-02-28 12:06 狄成 阅读(666) 评论(1) 推荐(0) 编辑

parted分区及lvm

摘要: 针对sdc分区 parted /dev/sdc pvcreate /dev/sdc1 vgcreate data /dev/sdc1 lvcreate -l +100%free -n data data mkfs.ext /dev/mapper/data-data /etc/fstab挂载 阅读全文
posted @ 2021-12-30 16:04 狄成 阅读(52) 评论(0) 推荐(0) 编辑

sdp安装及实例

摘要: 环境: sdpserver:192.168.1.160 sdpclient:192.168.1.161 安装 yum install gcc gcc-c++ libpcap* libtool* wget http://www.cipherdyne.org/fwknop/download/fwknop 阅读全文
posted @ 2021-12-28 15:54 狄成 阅读(562) 评论(0) 推荐(0) 编辑

logstash输出到MySQL

摘要: 1、安装插件/bin/logstash-plugin install logstash-output-jdbc 2、下载jdbc https://mvnrepository.com/artifact/mysql/mysql-connector-java 在logstash目录下创建jdbc目录,下载 阅读全文
posted @ 2021-08-13 21:37 狄成 阅读(669) 评论(0) 推荐(1) 编辑

centos6.5升级python3.6并安装boto3模块

摘要: 1、先升级openssl yum安装各种依赖,yum install gcc gcc-c++ autoconf automake zlib zlib-devel pcre-devel tar zxvf openssl-1.0.2u.tar.gz cd openssl-1.0.2u ./config 阅读全文
posted @ 2021-08-06 16:08 狄成 阅读(220) 评论(1) 推荐(0) 编辑

centos7 python2.7.5安装mysqldb

摘要: 1、安装pip,下载pip-20.3.1.tar.gz 解压python setup.py install 2、安装setuptools,下载setuptools-43.0.0.zip 解压python setup.py install 3、安装mysql-python-1.2.5 yum inst 阅读全文
posted @ 2021-07-22 18:36 狄成 阅读(203) 评论(0) 推荐(0) 编辑

esxi虚拟机定时创建快照

摘要: 1、vim-cmd vmsvc/getallvms 列出所有虚拟机信息 2、获取需要备份的虚拟机的Vmid 3、执行快照 vim-cmd vmsvc/snapshot.create Vmid $(date "+%F") Vmid填具体虚拟机的Vmid号 $加后面的值表示给快照命名 4、添加定时任务, 阅读全文
posted @ 2021-04-16 19:41 狄成 阅读(3055) 评论(1) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页