Fork me on GitHub

08 2020 档案

摘要:ssh 服务登录方式有两种: 用户/口令 基于秘钥 基于用户和口令登录验证: 1 客户端发起ssh请求,服务器会把自己的公钥发送给用户 2 用户会根据服务器发来的公钥对密码进行加密 3 加密后的信息回传给服务器,服务器用自己的私钥解密,如果密码正确, 则用户登录成功 基于用户名口令登录验证: ssh 阅读全文
posted @ 2020-08-17 17:51 Alex-Lzy 阅读(192) 评论(0) 推荐(0) 编辑
摘要:证书申请及签署步骤: 1、生成申请证书 2、RA核验 3、CA签署 4、获取证书 创建私有CA和申请证书 创建私有CA: openssl的配置文件: /etc/pki/tls/openssl.cnf 机器可以搭建多个ca ,默认使用的ca 是CA_default 存放位置 具体用处 dir /etc 阅读全文
posted @ 2020-08-14 16:07 Alex-Lzy 阅读(749) 评论(0) 推荐(0) 编辑
摘要:实验一前期准备: 删除boot下的所有grub开头的文件 rm -rf /boot/grub* reboot 开机状态: 一、 进救援模式(如何进入救援模式,可参考我其他文档) 二、 grub2-install /dev/sda2 三、 此时在boot下有grub2 文件了,但是没有grub.cfg 阅读全文
posted @ 2020-08-04 17:46 Alex-Lzy 阅读(340) 评论(0) 推荐(0) 编辑
摘要:一、 开机按Esc 二、 选择CD-ROM Drive 三、 选择Troubleshooting 四、 选择Rescue a CentOS system 五、 选第一个Continue ,输入1 回车 六、 此处提示可以切根,现在的根并不是你本来的根。(也可以不切,不切根的区别就是执行命令的时候,路 阅读全文
posted @ 2020-08-04 16:57 Alex-Lzy 阅读(965) 评论(0) 推荐(0) 编辑
摘要:Centos 6(以下均以httpd服务为例) 开启服务: service httpd start 关闭服务: service httpd stop 服务状态: service httpd status 开机服务自启动 chkconfig httpd on 开机服务禁止启动 chkconfig ht 阅读全文
posted @ 2020-08-04 11:43 Alex-Lzy 阅读(453) 评论(0) 推荐(1) 编辑
摘要:下载地址: https://www.busybox.net/downloads/ wget https://busybox.net/downloads/busybox-1.30.0.tar.bz2 一、安装必要的软件 yum install gcc gcc-c++ glibc glibc-devel 阅读全文
posted @ 2020-08-03 17:47 Alex-Lzy 阅读(678) 评论(0) 推荐(0) 编辑
摘要:yum 安装时报错 原因,yum源对应的版本包没有匹配 解决方法:转载 #wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo #sed -i 's/$releasever/7/g 阅读全文
posted @ 2020-08-03 11:51 Alex-Lzy 阅读(2263) 评论(1) 推荐(0) 编辑
摘要:make menuconfig 错误 肯定是缺少相应的包 这个报错缺少对应的包: centos : ncurses-devel Ubuntu: libncurses5-dev yum install ncurses-devel -y 阅读全文
posted @ 2020-08-03 11:04 Alex-Lzy 阅读(316) 评论(0) 推荐(0) 编辑
摘要:http://httpd.apache.org/ 下载地址 一、导入文件httpd-2.4.25.tar.bz2 二、解压httpd-2.4.25.tar.bz2 tar xvf httpd-2.4.25.tar.bz2 三、cat README看这软件是干什么的 四、看安装方法 cat INSTA 阅读全文
posted @ 2020-08-01 21:56 Alex-Lzy 阅读(366) 评论(0) 推荐(0) 编辑
摘要:wget http://mama.indstate.edu/users/ice/tree/src/tree-1.8.0.tgz 下载tree cat INSTALL 里面有操作步骤 1、./configure (1) 通过选项传递参数,指定启用特性、安装路径等;执行时会参考用户的指定以及Makefi 阅读全文
posted @ 2020-08-01 20:55 Alex-Lzy 阅读(206) 评论(0) 推荐(0) 编辑