秃头的富婆不好当
码龄4年
关注
提问 私信
  • 博客:3,033
    3,033
    总访问量
  • 21
    原创
  • 358,255
    排名
  • 1
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:北京市
  • 加入CSDN时间: 2021-03-28
博客简介:

m0_56629272的博客

查看详细资料
个人成就
  • 获得10次点赞
  • 内容获得9次评论
  • 获得0次收藏
创作历程
  • 21篇
    2021年
成就勋章
TA的专栏
  • 笔记
    3篇
创作活动更多

仓颉编程语言体验有奖征文

仓颉编程语言官网已上线,提供版本下载、在线运行、文档体验等功能。为鼓励更多开发者探索仓颉编程语言,现诚邀各位开发者通过官网在线体验/下载使用,参与仓颉体验有奖征文活动。

367人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

zabbix

安装zabbix[root@centos ~]# yum -y install mariadbmariadb-servermysql设置开机自启[root@centos ~]# systemctl start mariadb.service[root@centos ~]# systemctl enable设置登录密码[root@centos0 ~]# mysqladmin -uroot password[root@centos ~]# mysql -uroot -ppwd@1233.创建数据
原创
发布博客 2021.06.01 ·
104 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

zabbix

安装zabbix安装依赖[root@centos ~]# systemctl enable mariadb[root@centos ~]# systemctl start mariadb查看MySQL进程设置密码登录数据创建数据库设置授权 创建数据库MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;授权用户访问zaabix数据库MariaDB [(none)]>
原创
发布博客 2021.06.01 ·
108 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

haproxy搭建web群集

1.安装haproxy1)安装依赖解压缩[root@centos test]# tar zxvf /mnt/haproxy-1.4.24.tar.gz -C /usr/src/[root@centos test]# cd /usr/src/haproxy-1.4.24/编译安装[root@centos haproxy-1.4.24]# make TARGET=linux26[root@centos haproxy-1.4.24]# make install生成haproxy配置文件生成h
原创
发布博客 2021.05.25 ·
94 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

keepalived双机热备份

一,安装keepalived和LVS[root@centos1 ~]# mount /dev/cdrom /mnt/mount: /dev/sr0 写保护,将以只读方式挂载[root@centos1 ~]# yum -y install ipvsadm keepalived2)设置服务开机自启[root@centos1 ~]# chkconfig --level 35 keepalived on3)备份主配置文件[root@centos1 ~]# cp /etc/keepalived/kee
原创
发布博客 2021.05.23 ·
302 阅读 ·
1 点赞 ·
1 评论 ·
0 收藏

LVS负载均衡群集

centos01网站配置,挂载光盘[root@centos01 ~]# mount /dev/cdrom /mnt/mount: /dev/sr0 写保护,将以只读方式挂载2)安装httpd[root@centos01 ~]# yum -y install httpd3)编辑网站主页[root@centos01 ~]# echo “www.benet.com” > /var/www/html/index.html4)开启服务设置开机自启[root@centos01 ~]# system
原创
发布博客 2021.05.21 ·
97 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

部署tomcat及负载均衡

1、Tomcat1 server配置关闭防火墙2)查看JDK是否安装3)解压缩4)安装tomcat启动tomcat5)查看端口号6)客户端配置ip地址访问1.建立java的web站点2修改tomcat的server.xml文件3关闭tomcat,再启动4通过浏览器访问http://192.168.100.20:8080/5部署tomcat2 server6启动服务6)客户端访问安装nginx1)配置安装nginx用户和组2)安装nginx依赖软
原创
发布博客 2021.05.19 ·
77 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

nginx网站服务

一,编译安装nginx1.安装Nginx的依赖程序[root@centos ~]# yum -y install pcre-devel zlib-devel2.创建管理nginx的用户[root@centos ~]# useradd -M -s /sbin/nologin nginx3.解压nginx[root@centos ~]# tar zxf nginx-1.6.0.tar.gz -C /usr/src/[root@centos ~]# cd /usr/src/nginx-1.6.0
原创
发布博客 2021.05.14 ·
204 阅读 ·
1 点赞 ·
2 评论 ·
0 收藏

firewalld防火墙配置(二)

基本环境配置1)网关服务器配置ip地址及路由网站服务器配置ip地址搭建网站安装httpd服务和mod_ssl软件包创建网站测试页并启用httpd服务网关服务器配置防火墙更改ssh端口号编辑防火墙规则网站服务器配置防火墙更改ssh端口号编辑防火墙规则外网服务器配置防火墙内网客户端访问网站内网客户端sshweb站点,外网服务器sshgateway服务器配置地址伪装将源网络100.0伪装到外网接口ip地址客户端访问外网ip地址验证配置
原创
发布博客 2021.05.12 ·
271 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

firewalld防火墙一

一,基本环境配置1.为网关服务器和网站服务器配置主机名及网卡地址,并更改ssh的侦听地址2.重启服务查看IP地址信息[root@gateway ~]# systemctl restart network2)配置ssh端口号3.开启路由转发功能...
原创
发布博客 2021.05.10 ·
80 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

系统安全及应用

一,限制使用su命令1.修改配置认证文件/etc/pam.d/su, 启用 pam——wheel.so认证模块2.将admin用户加入到wheel组3.验证除了root.remdin以外 其他用户均不能使用su用户进行切换二,设置sudo授权1.授权用户zhangsan使用useradd userdel passwd usermod命令 但禁止执行“passwd root ” “usermod * root”操作2.授权lisi用户使用/sbin/*、/usr/sbin/命令,添加NOP
原创
发布博客 2021.05.08 ·
268 阅读 ·
1 点赞 ·
3 评论 ·
0 收藏

rsync远程同步

1、挂载光盘安装rsync[root@centos01 ~]# mount /dev/cdrom /mnt/mount: /dev/sr0 写保护,将以只读方式挂载[root@centos01 ~]# yum -y install rsync2、编辑rsync主配置文件[root@centos01 ~]# cp /etc/rsyncd.conf /etc/rsyncd.conf.bak[root@centos01 ~]# vim /etc/rsyncd.conf编辑身份验证账户密码4、开
原创
发布博客 2021.05.08 ·
78 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

软件仓库部署与应用

1、挂载系统光盘[root@centos01 ~]# mount /dev/cdrom /mnt/mount: /dev/sr0 写保护,将以只读方式挂载2、安装vsftpd软件包[root@centos01 ~]# yum -y install vsftpd3、配置ftp主配置文件[root@centos01 ~]# vim /etc/vsftpd/vsftpd.confanon_root=/centos74、启用ftp服务[root@centos01 ~]# systemctl sta
原创
发布博客 2021.05.08 ·
155 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

shell脚本(四)

查看测试文件[root@centos01 ~]# cat test.txthe was short and fat.He was wearing a blue polo shirt with black pants.The home of Football on BBC Sport online.the tongue is boneless but it breaks bones.12!google is the best tools for search keyword.The year a
原创
发布博客 2021.05.08 ·
254 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

shell脚本(三)

1、使用test进行条件测试[root@centos01 ~]# test -d /boot[root@centos01 ~]# echo $?0[root@centos01 ~]# test -d /qqq[root@centos01 ~]# echo $?12、使用括号进行条件测试[root@centos01 ~]# [ -d /boot ][root@centos01 ~]# echo $?0[root@centos01 ~]# [ -d /aaa ][root@centos0
原创
发布博客 2021.04.22 ·
233 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

shell脚本应用(二)

for循环1、使用for批量化创建用户[root@centos01 ~]#vim user.txtbobtomalice2、编写脚本添加账户[root@centos01 ~]# vim useradd.sh#!/bin/bashuser=$(cat /root/user.txt)for username in $userdouseradd $usernameecho “123456” | passwd --stdin $username & > /dev/nulld
原创
发布博客 2021.04.14 ·
120 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

shell脚本的应用(一)

shell脚本的应用1、编写脚本编写脚本[root@centos01 ~]# vim aa.sh#!/bin/bashcd /bootecho “显示当前目录位置:”pwd2、脚本文件添加执行权限[root@centos01 ~]# chmod +x aa.sh[root@centos01 ~]# ./aa.sh/重定向输出3、直接输出屏幕显示[root@centos01 ~]# echo “qqq”aaa4、将数据输出到文件中[root@centos01 ~]# echo
原创
发布博客 2021.04.07 ·
114 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

构建lamp平台

构建lamp平台安装php服务1、安装依赖程序包[root@centos01 ~]#yum -y install zlib-devel libxml2-devel2、配置libmcrypt[root@centos01 ~]# cd /usr/src/libmcrypt-2.5.8/[root@centos01 libmcrypt-2.5.8]# ./configure3、编译安装[root@centos01 libmcrypt-2.5.8]# make && make ins
原创
发布博客 2021.04.07 ·
121 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

MySQL的备份和恢复

一.创建bdqn数据库mysql> create database bdqnQuery OK, 1 row affected (0.00 sec)2.创建表格录入成绩mysql> create table一班成绩 (姓名 char (3),班级 char (2),学号 char (8),语文 char(3),数学 char(3),英语 char(3),理综 char(3));Query OK, 0 rows affected (0.00 sec)mysql> insert i
原创
发布博客 2021.04.07 ·
83 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

MySQL数据库

Mysql数据库一.编译安装MySQL数据库配置yum[root@centos ~]# rm -rf /etc/yum.repos.d/CentOS-*[root@centos ~]# vim /etc/yum.repos.d/local.repo[root@centos ~]# yum -y install cmake ncurses-devel1.创建管理MySQL组及用户[root@centos ~]# groupadd mysql[root@centos ~]# useradd -M
原创
发布博客 2021.03.30 ·
74 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

基于域名的虚拟web主机

基于域名的虚拟web主机一,配置dns服务提供域名解析1.挂载光盘[root@centos ~]# mount /dev/cdrom /mnt/2.安装dns[root@centos ~]# rm -rf /etc/yum.repos.d/CentOS-*[root@centos ~]# yum -y install bind bind-utils bind-chroot3.修改备份主配置文件[root@centos ~]# cp /etc/named.conf /etc/named.con
原创
发布博客 2021.03.30 ·
126 阅读 ·
0 点赞 ·
2 评论 ·
0 收藏
加载更多