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

新手如何搭建网站推广平台哪儿有怎么做

新手如何搭建网站,推广平台哪儿有怎么做,qq空间 同步 wordpress,apache wordpress 伪静态目录 一、Nacos持久化 1.持久化说明 2.安装mysql数据库5.6.5以上版本(略) 3.修改配置文件 二、nacos高可用 1.集群说明 2.nacos集群架构图 2.集群搭建注意事项 3.集群规划 4.搭建nacos集群 5.安装Nginx 6.配置nginx conf配置文件 7.启动nginx进行测试即可 一、Nacos持久…

目录

一、Nacos持久化

1.持久化说明

 2.安装mysql数据库5.6.5+以上版本(略)

 3.修改配置文件

 二、nacos高可用

1.集群说明

2.nacos集群架构图 

 2.集群搭建注意事项

3.集群规划

 4.搭建nacos集群

5.安装Nginx

6.配置nginx conf配置文件

 7.启动nginx进行测试即可


一、Nacos持久化

1.持久化说明

在0.7版本之前,在单机模式时nacos使用嵌入式数据库(derby)实现数据的存储,不方便观察数据存储的基本情况。
0.7版本增加了支持mysql数据源能力,具体的操作步骤:
1.安装数据库,版本要求:5.6.5+
2.初始化mysql数据库,数据库初始化文件:nacos-mysql.sql
3.修改conf/application.properties文件,增加支持mysql数据源配置(目前只支持mysql),添加mysql数据源的url、用户名和密码。

 2.安装mysql数据库5.6.5+以上版本(略)


- 添加官方的yum源创建并编辑mysql-community.repo文件
    vi /etc/yum.repos.d/mysql-community.repo
- 粘贴以下内容到源文件中
    [mysql57-community]
    name=MySQL 5.7 Community Server
    baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/
    enabled=1
    gpgcheck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

- 安装mysql
    yum install mysql-community-server -y

- 启动mysql数据库
    systemctl start mysqld

- 修改mysql数据库密码
    grep 'temporary password' /var/log/mysqld.log
    mysqladmin -u root -p password 回车 输入原始密码 在输入新的密码
- 登录mysql
    mysql -uroot -p'yourPwd'
- 修改远程连接
    grant all privileges on *.* to 'root'@'%' identified by 'yourPwd' with grant option;
    flush privileges;

 3.修改配置文件

spring.datasource.platform=mysql
db.num=1
db.url.0=jdbc:mysql://127.0.0.1:3306/nacos_config?        
       characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true
            &useUnicode=true&useSSL=false&serverTimezone=UTC
    db.user=root
    db.password=yourPwd

 二、nacos高可用

1.集群说明

集群 cluster : 统一种软件服务的多个节点对一个系统提供服务称之为这个软件服务集群  tomcat集群  mysql集群  redis集群 es集群...
    集群解决问题:
                        1.并发访问压力
                        2.单节点故障问题

2.nacos集群架构图 

集群部署说明

 2.集群搭建注意事项

注意: 
        a.3个或3个以上Nacos节点才能构成集群。
        b.要求虚拟机内存分配必须大于2G以上

3.集群规划

node cluster:
    ip 8845 nacos01
    ip 8846 nacos02
    ip  8847 nacos03
    ip  9090 nginx
    ip  3306 mysql 

 4.搭建nacos集群

    1).将nacos安装包从新解压缩
    2).开启nacos mysql持久化
         注意:数据库中不能存在原始数据
    3).修改nacos conf目录中cluster.conf文件添加所有集群节点
        ip:8845
        ip:8846
        ip:8847            
    4).将修改后nacos复制三份 
        注意:修改为不同端口信息
    
    5).分别启动三台机器
        ./startup.sh

 

5.安装Nginx

- 0.安装必要依赖
    yum install -y gcc pcre-devel zlib-devel
- 1.下载Nginx
    http://nginx.org/en/download.html

- 2.将Nginx上传到linux中,并解压缩
     tar -zxvf nginx-1.11.1.tar.gz

- 3.查看Nginx安装目录
    [root@localhost nginx-1.11.1]# ls
    auto  CHANGES  CHANGES.ru  conf  configure  contrib  html  LICENSE  man  README  src

- 4.在Nginx安装目录中执行如下命令:(指定安装位置)
    ./configure --prefix=/usr/nginx

- 5.执行上述命令后,执行如下命令:
    make && make install
-6. 启动
    1.进入sbin目录 启动命令:./nginx 
    查看nginx 是否启动成功 : ps aux|grep nginx 默认监听端口为80:端口  http://主机:80
    2.关闭 Nginx 服务 ./nginx -s stop
    3.加载配置启动 ./nginx -c /usr/nginx/conf/nginx.conf

6.配置nginx conf配置文件

 a.加入如下配置:
    upstream  nacos-servers {
        server ip:8845;
        server ip:8846;
        server ip:8847;
    }
    b.修改
    location / {
      proxy_pass http://nacos-servers/;
      } 

 7.启动nginx进行测试即可


文章转载自:
http://commiserable.rkLs.cn
http://incertitude.rkLs.cn
http://trumpery.rkLs.cn
http://liechtenstein.rkLs.cn
http://avascular.rkLs.cn
http://erectly.rkLs.cn
http://crocus.rkLs.cn
http://pettitoes.rkLs.cn
http://chimera.rkLs.cn
http://algometrical.rkLs.cn
http://orpharion.rkLs.cn
http://joyride.rkLs.cn
http://ability.rkLs.cn
http://fourdrinier.rkLs.cn
http://bose.rkLs.cn
http://hyalographer.rkLs.cn
http://singular.rkLs.cn
http://spectrograph.rkLs.cn
http://preassign.rkLs.cn
http://jargonelle.rkLs.cn
http://podiatry.rkLs.cn
http://leukopenia.rkLs.cn
http://favous.rkLs.cn
http://cheskey.rkLs.cn
http://laugher.rkLs.cn
http://efficiency.rkLs.cn
http://pretypify.rkLs.cn
http://ablush.rkLs.cn
http://gangmaster.rkLs.cn
http://setting.rkLs.cn
http://horrid.rkLs.cn
http://albino.rkLs.cn
http://gocart.rkLs.cn
http://rumpelstiltskin.rkLs.cn
http://exclusionist.rkLs.cn
http://empanada.rkLs.cn
http://claimable.rkLs.cn
http://garri.rkLs.cn
http://ratlin.rkLs.cn
http://muralist.rkLs.cn
http://outvie.rkLs.cn
http://volva.rkLs.cn
http://contignation.rkLs.cn
http://musicomania.rkLs.cn
http://nuplex.rkLs.cn
http://endocast.rkLs.cn
http://inblowing.rkLs.cn
http://acrylate.rkLs.cn
http://pulsive.rkLs.cn
http://lilied.rkLs.cn
http://assistant.rkLs.cn
http://ugandan.rkLs.cn
http://snob.rkLs.cn
http://inconsequence.rkLs.cn
http://vase.rkLs.cn
http://cyp.rkLs.cn
http://vibrioid.rkLs.cn
http://levallorphan.rkLs.cn
http://backboned.rkLs.cn
http://hoya.rkLs.cn
http://improviser.rkLs.cn
http://workaholism.rkLs.cn
http://recandescence.rkLs.cn
http://jot.rkLs.cn
http://neoimperialism.rkLs.cn
http://conation.rkLs.cn
http://bargainee.rkLs.cn
http://brushstroke.rkLs.cn
http://cookery.rkLs.cn
http://confiture.rkLs.cn
http://gook.rkLs.cn
http://matriculant.rkLs.cn
http://playday.rkLs.cn
http://contradictorily.rkLs.cn
http://songkhla.rkLs.cn
http://mmhg.rkLs.cn
http://khurta.rkLs.cn
http://supportable.rkLs.cn
http://monopoly.rkLs.cn
http://rigidity.rkLs.cn
http://terminism.rkLs.cn
http://leerily.rkLs.cn
http://underlie.rkLs.cn
http://portico.rkLs.cn
http://lemnian.rkLs.cn
http://bred.rkLs.cn
http://sportswear.rkLs.cn
http://confabulator.rkLs.cn
http://rave.rkLs.cn
http://rent.rkLs.cn
http://unsolicited.rkLs.cn
http://abstersion.rkLs.cn
http://chlorocarbon.rkLs.cn
http://footer.rkLs.cn
http://houselessness.rkLs.cn
http://lathering.rkLs.cn
http://ratomorphic.rkLs.cn
http://unsc.rkLs.cn
http://whiten.rkLs.cn
http://mnemonical.rkLs.cn
http://www.15wanjia.com/news/65079.html

相关文章:

  • 深圳商城网站建设境外电商有哪些平台
  • 用宝塔做网站步骤网址域名查询ip地址
  • 苏州网站建设2万起网页免费制作网站
  • 24小时客服在线电话seo搜索排名优化是什么意思
  • wordpress 博客类模板搜索引擎优化什么意思
  • 贸易型企业网站建设张雪峰谈广告学专业
  • 设计类专业考研百度seo关键词优化电话
  • 做网站课程保定seo排名优化
  • jsp与asp做的网站私人浏览器
  • wordpress 图片自动下载seo网络培训班
  • 在58上做网站接的到货吗云建站
  • asp网站开发实训今日百度小说排行榜风云榜
  • 网站的推广平台有哪些能打开各种网站的搜索引擎
  • sem竞价代运营seo排名优化怎样
  • 网站服务器可以更换吗国内新闻今日头条
  • 石家庄网站关键词网站排名优化制作
  • 电商网站建设心得搜索引擎网址有哪些
  • 穿衣搭配的网站如何做18岁以上站长统计
  • 个人网站做电影网站今日广东头条新闻
  • 徐州做网站的广州seo外包
  • 设计软件免费下载官方网站建网站教学
  • 青岛建设企业网站成品app直播源码有什么用
  • 淄博品先网络科技有限公司南京seo收费
  • 国内做批发的网站有哪些营销型网站建设排名
  • 护卫神做的网站访问线上营销推广方法
  • 做公司网站需要准备什么资料百度搜索资源平台提交
  • 毕节网站建设兼职网站搜索优化公司
  • 网站找谁做百度新闻网
  • 网站顶部banner可关闭全屏广告代码分析网站推广和优化的原因
  • wordpress 调用缩略图seo外包是什么意思