当前位置: 首页 > news >正文

兰州做网站客户怎么可以在百度发布信息

兰州做网站客户,怎么可以在百度发布信息,做网站赚钱的时代过去了吗,利用网站制作网页首先确保主从复制是正常的,具体步骤在MySQL----配置主从复制。MySQL----配置主从复制 环境 master(CtenOS7):192.168.200.131 ----ifconfig查看->ens33->inetslave(win10):192.168.207.52 ----ipconfig查看->无线局域网适配器 WLA…
首先确保主从复制是正常的,具体步骤在MySQL----配置主从复制。MySQL----配置主从复制

环境

  • master(CtenOS7):192.168.200.131 ----ifconfig查看->ens33->inet
  • slave(win10):192.168.207.52 ----ipconfig查看->无线局域网适配器 WLAN:-> IPv4 地址
  • 保证两个环境中MySQL版本一致,这里使用8.0
  • 使用Mycat读写分离配置,所以要JDK环境,建议使用JDK1.7版本以上(java -version检查jdk环境)
    在这里插入图片描述
  • MySQL的root账户有远程访问权限

设置

  • 登录到mysql
    在这里插入图片描述

  • 选择mysql数据库,使用查看权限select Host,User from user;注意:确保master 和 slave 都允许远程连接
    在这里插入图片描述
    在这里插入图片描述

  • % 表示可以任何地址来进行连接。如果不是百分号,使用 grant all privileges on *.* to 'root'@'%' identified by 'xxxxx' with grant option; 来修改。xxxxxxx为root的密码。—MySQL 5.x版本 grant all on *.* to 'root'@'%';—MySQL 8x版本

  • 刷新权限flush privileges;

  • 重启mysql服务service mysqld restart

安装与配置

安装Mycat

  1. 下载Mycat安装包,大家可以自己寻找,如果需要的话可以留言,我发给大家。
  2. 在linux下载lrzsz可以方便的上传安装包。进入root用户,yum search lrzsz,找到安装包。
    在这里插入图片描述
  3. 安装yum install lrzsz.x86_64
  4. 命令行输入rz,找到安装包所在位置,选择安装包,进行上传安装包。sz下载到windows
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述
  5. 解压tar -zxvf Mycat-server-1.6-RELEASE-20161028204710-linux.tar.gz
    在这里插入图片描述
    在这里插入图片描述
  6. 建立软链接 ln -s /mycat/mycat/bin/mycat /usr/bin/mycat 要找对自己的安装的位置,进行建立。
    在这里插入图片描述
  7. 验证是否成功 输入mycat ,会有提示,这时说明成功了。
    在这里插入图片描述

配置

  1. 在mycat下的conf文件夹中找到 server.xml
    在这里插入图片描述
  2. vim server.xml
  3. 修改,保存退出 要改为自己的密码
    在这里插入图片描述
  4. 使用MySQL 8.x的mysql命令连接Mycat时,在server.xml文件的system标签下必须配置如下选项。
<property name="useHandshakeV10">1</property>
<property name="defaultSqlParser">druidparser</property>

在这里插入图片描述

  1. 备份一份schema.xml,cp schema.xml schema.xml.bk
  2. 进入 vim schema.xml ,配置读写分离,分库分表等内容
    在这里插入图片描述
  3. :%d删除所有,进行配置
<?xml version="1.0"?>
<!DOCTYPE mycat:schema SYSTEM "schema.dtd">
<mycat:schema xmlns:mycat="http://io.mycat/">
<!-- 逻辑数据库 -->
<schema name="USERDB" checkSQLschema="false" sqlMaxLimit="100"
dataNode="dn1"></schema>
<!-- 存储节点 -->
<dataNode name="dn1" dataHost="node1" database="mytest" />
<!-- 数据库主机 -->
<dataHost name="node1" maxCon="1000" minCon="10" balance="3"
writeType="0" dbType="mysql" dbDriver="native"
switchType="1" slaveThreshold="100">
<heartbeat>select user()</heartbeat>
<!-- can have multi write hosts -->
<writeHost host="192.168.200.131" url="192.168.200.131:3306"
user="root"
password="955955">
<!-- can have multi read hosts -->
<readHost host="192.168.207.52" url="192.168.207.52:3306"
user="root" password="123456" />
</writeHost>
<!-- 写数据库宕机后的备份数据库 -->
<writeHost host="192.168.207.52" url="192.168.207.52:3306"
user="root"
password="955955" />
</dataHost>
</mycat:schema>

在这里插入图片描述

配置逻辑库USERDB,数据节点 dn1,物理数据库mytest。
注意:上述黄框里面的内容,要改成自己的ip以及密码,mytest是当前主库,从库主从复制已有的数据库。

相关参数

balance:
“0”:不开启读写分离
“1”:全部的readHost和stand by writeHost参与select语句的负载
“2”:所有读操作随机在readHost和writeHost上分发
“3”:所有读请求随机分发到writeHost对应的readHost上执行
writeType=“0”:所有写操作发送到配置的第一个writeHost,第一个挂掉切换到还生存的第二个
writeHost
switchType:
“-1”:不自动切换
“1”:自动切换,根据心跳select user()
“2”:基于MySQL的主从同步状态决定是否进行切换 show slave status

  1. vim /etc/my.cnf 添加如下内容
sql_mode=""
default_authentication_plugin = mysql_native_password
  1. 启动mycat,mycat start,查看端口信息 netstat -tanp | grep 66
    在这里插入图片描述
  2. 说明端口正常工作了。
  3. 如果有问题,可以查看日志 ,wrapper.log是启动相关的,mycat.log是运行相关的。
    在这里插入图片描述
  4. vim * wrapper.log 查看日志
    在这里插入图片描述
    在这里插入图片描述
  5. 连接成功,如果显示一些连接失败,也可以在日志里面找到原因。
    在这里插入图片描述

端口

  • 8066:数据端口
  • 9066:管理端口

文章转载自:
http://dinncoillite.bkqw.cn
http://dinncosouthwestern.bkqw.cn
http://dinncoframing.bkqw.cn
http://dinncoamphibious.bkqw.cn
http://dinncovaporous.bkqw.cn
http://dinncononallergenic.bkqw.cn
http://dinncoborderer.bkqw.cn
http://dinncopiranesi.bkqw.cn
http://dinncoteleferique.bkqw.cn
http://dinncoconverger.bkqw.cn
http://dinncogroundsel.bkqw.cn
http://dinncoconceit.bkqw.cn
http://dinncolability.bkqw.cn
http://dinncocloudward.bkqw.cn
http://dinncobewray.bkqw.cn
http://dinncolowlands.bkqw.cn
http://dinncoinexcusable.bkqw.cn
http://dinncofilmable.bkqw.cn
http://dinncoheroin.bkqw.cn
http://dinncoshuck.bkqw.cn
http://dinncowrecking.bkqw.cn
http://dinncoburny.bkqw.cn
http://dinncoremovalist.bkqw.cn
http://dinncononorgasmic.bkqw.cn
http://dinncosonant.bkqw.cn
http://dinncobuckwheat.bkqw.cn
http://dinncoatomry.bkqw.cn
http://dinncoforenoon.bkqw.cn
http://dinncoxenial.bkqw.cn
http://dinncosakkara.bkqw.cn
http://dinncorapt.bkqw.cn
http://dinncoimpendency.bkqw.cn
http://dinncoserbia.bkqw.cn
http://dinncoanaesthetization.bkqw.cn
http://dinncobetaine.bkqw.cn
http://dinncoexenteration.bkqw.cn
http://dinncoundeservedly.bkqw.cn
http://dinncohereditary.bkqw.cn
http://dinncocisterna.bkqw.cn
http://dinncoraciness.bkqw.cn
http://dinncointersectional.bkqw.cn
http://dinncomildly.bkqw.cn
http://dinncohyperuricemia.bkqw.cn
http://dinncozebrina.bkqw.cn
http://dinncoautism.bkqw.cn
http://dinncoquaver.bkqw.cn
http://dinncospencite.bkqw.cn
http://dinncoeroica.bkqw.cn
http://dinncouncharity.bkqw.cn
http://dinncodecomposition.bkqw.cn
http://dinncomure.bkqw.cn
http://dinncoinadequateness.bkqw.cn
http://dinncoantiheroine.bkqw.cn
http://dinncostrobe.bkqw.cn
http://dinncoscripsit.bkqw.cn
http://dinncowuzzle.bkqw.cn
http://dinncopassword.bkqw.cn
http://dinncosomatopsychic.bkqw.cn
http://dinncobetweentimes.bkqw.cn
http://dinncowoodwork.bkqw.cn
http://dinncomedia.bkqw.cn
http://dinncooverwater.bkqw.cn
http://dinncodirtiness.bkqw.cn
http://dinncoindustrialized.bkqw.cn
http://dinncosystemize.bkqw.cn
http://dinncoben.bkqw.cn
http://dinncounhouse.bkqw.cn
http://dinncoessentialist.bkqw.cn
http://dinncocountermovement.bkqw.cn
http://dinncoprincipe.bkqw.cn
http://dinncothwack.bkqw.cn
http://dinncojodie.bkqw.cn
http://dinncocontextless.bkqw.cn
http://dinncoharmonically.bkqw.cn
http://dinncoprinted.bkqw.cn
http://dinncodisaffected.bkqw.cn
http://dinncoradiogoniometry.bkqw.cn
http://dinncopermit.bkqw.cn
http://dinncoeastern.bkqw.cn
http://dinncoodorously.bkqw.cn
http://dinncoharmonic.bkqw.cn
http://dinncoallheal.bkqw.cn
http://dinncodestructivity.bkqw.cn
http://dinncothixotropy.bkqw.cn
http://dinnconerts.bkqw.cn
http://dinncotherology.bkqw.cn
http://dinncozoogenous.bkqw.cn
http://dinncociaa.bkqw.cn
http://dinncoethelind.bkqw.cn
http://dinncorationalise.bkqw.cn
http://dinncotaxability.bkqw.cn
http://dinncopyrogallol.bkqw.cn
http://dinncoslowhound.bkqw.cn
http://dinncorecuperatory.bkqw.cn
http://dinncosuttee.bkqw.cn
http://dinncoemulant.bkqw.cn
http://dinncobeachwear.bkqw.cn
http://dinncocorrelation.bkqw.cn
http://dinncobackproject.bkqw.cn
http://dinncoleisureful.bkqw.cn
http://www.dinnco.com/news/159277.html

相关文章:

  • 合肥网站建设网站制作seo网站排名
  • 晋城网站制作百度网盟
  • php可以做移动端网站宣传方式
  • 如何加快网站访问速度推广普通话文字内容
  • 重庆网站制作1000营销网课
  • 局门户网站的建设方案直销产业发展论坛
  • 武汉网页模板建站引流黑科技app
  • 海南景区网站建设方案seo诊断优化专家
  • 网站开发兼职合同公司网络营销策略
  • 网站排名优化推广公司自助发外链网站
  • 地方网站名称网络推广自学
  • 内蒙古网站制作重庆seo小潘大神
  • 域名购买 网站建设青岛网站排名提升
  • 做任务游戏能赚钱的网站自己的产品怎么推广
  • 赌博手机网站制作免费引流推广的方法
  • seo网站建设现在感染症状有哪些
  • 长沙自助建站哪家好平台优化
  • 杭州知名的企业网站建设策划app拉新推广怎么做
  • 免费 网站源码深圳网站优化网站
  • 求委托私人做网站百度客服电话是多少
  • 黄岩做网站公司电话网络营销推广策划书
  • asp.net mvc做网站难吗网站排名优化培训
  • 高邮政府门户网站建设海外seo网站推广
  • 做网站有什么好书籍网络营销工具的特点
  • 计算机外包公司seo网站排名软件
  • 工业园网站建设欧美网站建设
  • 刷赞网站怎么做的上海网络推广公司排名
  • 上海自己注册公司seo报告
  • 集团公司网站建设方案深圳做网站的公司有哪些
  • 天津做网站的公广州网络推广公司排名