摘要: 如果没有设置密码,配置文件设置grant-skip-tables,只需要生效即可MariaDB [(none)]> grant all on *.* to 'test'@'192.168.30.%'identified by '123.com';ERROR 1290 (HY000): The Mar 阅读全文
posted @ 2019-05-25 08:35 #赵程# 阅读(95) 评论(0) 推荐(0) 编辑
摘要: [root@localhost ~]# iptables -F[root@localhost ~]# systemctl stop firewalld[root@localhost ~]# systemctl disable firewalld[root@localhost ~]# setenfor 阅读全文
posted @ 2019-05-25 08:34 #赵程# 阅读(224) 评论(0) 推荐(0) 编辑
摘要: [root@tomcat2 ~]# keytool -genkeypair -alias tomcat -keyalg RSA -keystore /usr/local/tomcat7/keystore输入密钥库口令: 再次输入新口令: 您的名字与姓氏是什么? [Unknown]: zhao 您的组 阅读全文
posted @ 2019-05-25 08:33 #赵程# 阅读(988) 评论(0) 推荐(0) 编辑
摘要: 192.168.30.23mkdir /web/webapptar xf SLSaleSystem.tar.gz -C /web/webappls /web/wenbappvim /usr/local/tomcat8/conf/server.xml<Context docBase="/web/web 阅读全文
posted @ 2019-05-25 08:32 #赵程# 阅读(701) 评论(0) 推荐(0) 编辑
摘要: 解压部署tomcat程序创建2个实例的工作目录mkdir -p /usr/local/tomcat8_instance/tomcat1mkdir -p /usr/local/tomcat8_instance/tomcat2拷贝tomcat 程序目录下的conf分别放入2个实例目录中cp -R /us 阅读全文
posted @ 2019-05-25 08:31 #赵程# 阅读(217) 评论(0) 推荐(0) 编辑
摘要: vim /etc/hosts192.168.30.21 www.crushlinux.com192.168.30.21 www.cloud.com[root@localhost ~]# cd /usr/local/tomcat8/conf[root@localhost conf]# cp serve 阅读全文
posted @ 2019-05-25 08:30 #赵程# 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 1,关闭防火墙和selinuxiptables -Fsystemctl stop firewalldsystemctl disable firewalldsetenforce 0服务器系统 名字 IP地址 nfs-server 192.168.30.21 nfs-client1 192.168.30 阅读全文
posted @ 2019-05-25 08:29 #赵程# 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 后期修改数据库用户的密码初始密码为自动生成,我们需要情况原始密码,再修改密码,mysqldmin -u root 只能用在修改为原始密码之后使用systemctl stop mysqldvim /etc/my.cnf添加skip-grant-tables启动服务systemctl start mys 阅读全文
posted @ 2019-05-25 08:28 #赵程# 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 数据库授权登录[root@localhost ~]# mysql -uroot -p123456mysql> grant select,lock tables on auth.* to 'admin'@'192.168.30.24'identified by '123456';mysql> gran 阅读全文
posted @ 2019-05-25 08:27 #赵程# 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 1)实验所有关闭防火墙systemtcl stop firewalldsystemctl disable firewalldsetenforce 0iptables -F2)配置负载调度器配置虚拟IP地址,采用虚拟接口的方式(ens33:0)为网卡ens33 绑定vip地址,一便响应集群访问yum 阅读全文
posted @ 2019-05-25 08:25 #赵程# 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 环境配置,一台双网卡的ens33,ens37,ens37的网关是ens33的IP,指定一下nginx ens33,192.168.30.22,ens37,172.16.1.1nginx 192.168.30.21nginx 192.168.30.241)关闭防火墙systemctl stop fir 阅读全文
posted @ 2019-05-25 08:24 #赵程# 阅读(406) 评论(0) 推荐(0) 编辑
摘要: Gluster分布式文件系统 准备环境五台虚拟机 创建/gfs目录,把软件包全部拷贝目录 把yum仓库的源放进bak下才能执行以下脚本 并指定主机名这四台机器都要执行脚本 [root@localhost ~]# mkdir /gfs [root@localhost ~]# cd /gfs 把包放进/ 阅读全文
posted @ 2019-05-25 08:22 #赵程# 阅读(937) 评论(0) 推荐(0) 编辑
摘要: GlusterFS 两种模式 可以通过TCP/IP和RDMA高速网络互连,客户端可通过原生Gluster协议访问数据 没有GlusterFS客户端的可以通过NFS/CIFS标准协议通过存储网关访问数据 能够利用普通廉价的存储设备来部署可集中管理,横向扩展,虚拟化的存储池,存储容量 可扩展TB/PB级 阅读全文
posted @ 2019-05-25 08:21 #赵程# 阅读(683) 评论(0) 推荐(0) 编辑
摘要: 1,下载安装包wget http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm2,安装mysql源yum -y install mysql57-community-release-el7-11.noarch.rpm3, 阅读全文
posted @ 2019-05-25 08:20 #赵程# 阅读(491) 评论(0) 推荐(0) 编辑
摘要: Mysql主主高可用方案 master配置 [root@master ~]# yum -y install keepalived [root@master ~]# vim /etc/keepalived/keepalived.conf ! Configuration File for keepali 阅读全文
posted @ 2019-05-25 08:18 #赵程# 阅读(306) 评论(0) 推荐(0) 编辑
摘要: Mysql 主主同步方案 第一台机器主 [root@master ~]# vim /etc/my.cnf [mysqld] server-id=1 log-bin=mysql-binlog log-slave-updates=true max_binlog_size=1024M auto_incre 阅读全文
posted @ 2019-05-25 08:17 #赵程# 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 部署mysql主从复制 Mysql master ip: 192.168.30.25 一主两从 Mysql slave ip: 192.168.30.24 Mysql slave ip:192.168.30.23 关闭防火墙 [root@master ~]# setenforce 0 [root@m 阅读全文
posted @ 2019-05-25 08:16 #赵程# 阅读(844) 评论(0) 推荐(0) 编辑
摘要: 安装与管理MongoDB 1.安装解压源码包 [root@bogon ~]# tar xf mongodb-linux-x86_64-rhel70-4.0.6.tgz [root@bogon ~]# mv mongodb-linux-x86_64-rhel70-4.0.6/ /usr/local/m 阅读全文
posted @ 2019-05-25 08:13 #赵程# 阅读(784) 评论(0) 推荐(0) 编辑