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

竞价托管网站建设自己开网店没有货源怎么办

竞价托管网站建设,自己开网店没有货源怎么办,郑州企业建站免费咨询,公司信息化网站建设实施方案目录展示Nacos2.0.4集群搭建1. 下载2. 解压3.修改配置3.1分别修改下启动类中JDK路径以及启动大小3.2 分别配置数据源3.3 创建nacos数据库3.4 修改cluster.conf配置3.4.1 复制并修改3.4.2 编辑文件#xff0c;修改三台主机地址3.4.3 分别放入另外两个nacos的conf目录下:4. 启动… 目录展示Nacos2.0.4集群搭建1. 下载2. 解压3.修改配置3.1分别修改下启动类中JDK路径以及启动大小3.2 分别配置数据源3.3 创建nacos数据库3.4 修改cluster.conf配置3.4.1 复制并修改3.4.2 编辑文件修改三台主机地址3.4.3 分别放入另外两个nacos的conf目录下:4. 启动集群5. 设置服务开机启动5.1 创建脚本5.2 添加内容5.3 赋权5.4 开机自启新建服务文件添加内容赋权设置开机自启重载配置重启尝试脚本可行性reboot6. OpenResty6.1 下载6.2 解压6.3 进入目录6.4 执行configure命令6.5 配置nginx.conf文件6.6 重新加载配置文件6.7 设置服务开机自启6.8 设置开机自启准备环境 前提环境准备 JDK安装及环境配置参考 MySQL安装及环境配置参考 Maven安装及环境配置参考 Nacos2.0.4集群搭建 1. 下载 官网Github 新建目录 mkdir /usr/local/nacos-cluster进入目录 cd /usr/local/nacos-cluster在线下载 wget https://github.com/alibaba/nacos/releases/download/2.0.4/nacos-server-2.0.4.tar.gz 2. 解压 因为在同一台机器伪集群所以就改端口 1 解压、重命名区分也可以先配置好一台然后再拷贝两份改下端口就行 至于为啥没8848因为集群启动报错提示8848端口占用.... 至于为啥端口设置的这么离谱问就是官方设置端口占用有偏移量1000±,然后主要是我看不到到底是那个端口被占用了去查又没有…搞玄学来的之前设置8840、8850、8860这种连续端口启动的时候报一堆错差点没把我送走折腾了好久。后来实在不甘心随便整个端口跑一下结果就跑起来了。总结不要使用连续端口 Caused by: io.grpc.netty.shaded.io.netty.channel.unix.Errors$NativeIoException: bind(…) failed: Address already in use tar -zxvf nacos-server-2.0.4.tar.gz mv nacos nacos81402 tar -zxvf nacos-server-2.0.4.tar.gz mv nacos nacos85503 tar -zxvf nacos-server-2.0.4.tar.gz mv nacos nacos89603.修改配置 3.1分别修改下启动类中JDK路径以及启动大小 vi /usr/local/nacos-cluster/nacos8140/bin/startup.sh vi /usr/local/nacos-cluster/nacos8550/bin/startup.sh vi /usr/local/nacos-cluster/nacos8960/bin/startup.sh ESC状态下:set number可以显示行号 30行 jdk路径 55 行 默认集群模式启动 93行 启动大小可以自行修改 ESC :wq保存并退出 3.2 分别配置数据源 vi /usr/local/nacos-cluster/nacos8140/conf/application.properties vi /usr/local/nacos-cluster/nacos8550/conf/application.properties vi /usr/local/nacos-cluster/nacos8960/conf/application.properties #修改端口 server.port8140 #去掉前面的#注释修改数据库地址、数据库用户名、密码 ###If use MySQL as datasource: spring.datasource.platformmysql ###Count of DB: db.num1 ###Connect URL of DB: db.url.0jdbc:mysql://192.168.20.128:3306/nacos_config?characterEncodingutf8connectTimeout1000socketTimeout3000autoReconnecttrueuseUnicodetrueuseSSLfalseserverTimezoneUTC db.user.0root db.password.0123456 3.3 创建nacos数据库 新建nacos_config库 sql脚本在对应的conf目录下,放到本地创建数据库执行一下导入到新建的数据库中 例如/usr/local/nacos-cluster/nacos8140/conf 3.4 修改cluster.conf配置 就是将 conf目录下的cluster.conf.example 文件改为cluster.conf文件 然后修改文件里的集群地址 3.4.1 复制并修改 cp /usr/local/nacos-cluster/nacos8140/conf/cluster.conf.example /usr/local/nacos-cluster/nacos8140/conf/cluster.conf 3.4.2 编辑文件修改三台主机地址 vi /usr/local/nacos-cluster/nacos8140/conf/cluster.confESC :wq保存并退出 3.4.3 分别放入另外两个nacos的conf目录下: cp /usr/local/nacos-cluster/nacos8140/conf/cluster.conf /usr/local/nacos-cluster/nacos8550/conf cp /usr/local/nacos-cluster/nacos8140/conf/cluster.conf /usr/local/nacos-cluster/nacos8960/conf 4. 启动集群 记得开放端口或者直接关闭防火墙 firewall-cmd --zonepublic --add-port3306/tcp --permanent --zone # 作用域 --add-port3306/tcp # 添加端口格式为端口/通讯协议 --permanent # 永久生效没有此参数重启后失效 查看开放的端口 cat /etc/firewalld/zones/public.xml 或者直接 停止防火墙 systemctl stop firewalld 永久关闭防火墙 systemctl disable firewalld 防火墙状态 systemctl status firewalld sh /usr/local/nacos-cluster/nacos8140/bin/startup.sh sh /usr/local/nacos-cluster/nacos8550/bin/startup.sh sh /usr/local/nacos-cluster/nacos8960/bin/startup.sh 可查看对应启动日志 tail -f /usr/local/nacos-cluster/nacos8140/logs/start.out 访问地址http://IP:端口/nacos/ 例如http://192.168.20.128:8140/nacos/ 相关命令 非集群 单机启动sh startup.sh -m standalone 集群模式 使用内置数据源 sh startup.sh -p embedded 使用外置数据源 sh startup.sh 5. 设置服务开机启动 5.1 创建脚本 vi nacos-cluster.sh5.2 添加内容 #!/bin/bash case $1 in start )#echo 启动nacos集群 #echo 启动nacos8140 sh /usr/local/nacos-cluster/nacos8140/bin/startup.sh#echo 启动nacos8550sh /usr/local/nacos-cluster/nacos8550/bin/startup.sh#echo 启动nacos8960 sh /usr/local/nacos-cluster/nacos8960/bin/startup.sh;;stop )#echo 停止nacos集群 #echo 停止nacos8140 /usr/local/nacos-cluster/nacos8140/bin/shutdown.sh#echo 停止nacos8550/usr/local/nacos-cluster/nacos8550/bin/shutdown.sh#echo 停止nacos8960 /usr/local/nacos-cluster/nacos8960/bin/shutdown.sh;; esac 5.3 赋权 chmod ux nacos-cluster.sh 脚本单独使用命令 启动sh nacos-cluster.sh start 停止sh nacos-cluster.sh stop 5.4 开机自启 准备设置一个.service开机执行这个脚本文件以此实现自启效果 系统启动脚本目录 /etc/systemd/system/ 新建服务文件 vi /etc/systemd/system/nacos-cluster.service添加内容 [Unit] Descriptionnacos-cluster Afternetwork.target remote-fs.target nss-lookup.target mysql8.service zookeeper.service kafka.service[Service] Typeforking ExecStartsh /usr/local/nacos-cluster/nacos-cluster.sh start ExecStopsh /usr/local/nacos-cluster/nacos-cluster.sh stop PrivateTmptrue[Install] WantedBymulti-user.target 按ESC :wq保存并退出 赋权 chmod 754 /etc/systemd/system/nacos-cluster.service设置开机自启 systemctl enable nacos-cluster.service重载配置 systemctl daemon-reload重启尝试脚本可行性reboot 重启后等待一会nacos启动要点世界 systemctl status nacos-cluster.service6. OpenResty 通过使用Lua扩展NGINX的可扩展Web平台 中文官网http://openresty.org/cn/ 支持的lua模块: http://openresty.org/cn/components.html 下载页面http://openresty.org/cn/download.html 下载链接https://openresty.org/download/openresty-1.21.4.1.tar.gz 6.1 下载 cd /usr/local/ yum install -y wget wget https://openresty.org/download/openresty-1.21.4.1.tar.gz6.2 解压 tar -zxvf openresty-1.21.4.1.tar.gz6.3 进入目录 cd /usr/local/openresty-1.21.4.1 6.4 执行configure命令 默认安装目录 --prefix/usr/local/openresty 必要环境 yum -y install gcc gcc-c perl make kernel-headers kernel-develyum -y install pcre-devel执行命令 ./configure --prefix/usr/local/openresty --with-luajit --with-http_stub_status_module --with-pcre --with-pcre-jit --with-http_gzip_static_module --with-http_ssl_module 执行命令: make make install6.5 配置nginx.conf文件 vi /usr/local/openresty/nginx/conf/nginx.conf添加内容 upstream nacoscluster{server 192.168.20.128:8140;server 192.168.20.128:8550;server 192.168.20.128:8960;}server {# postlisten 8999;server_name localhost;location /nacos/{proxy_pass http://nacoscluster/nacos/;}} ESC :wq保持并退出 cd /usr/local/openresty/nginx/sbin/openresty启动命令 ./nginx6.6 重新加载配置文件 ./nginx -s reload服务调用访问地址http://192.168.20.128:8999/nacos/ 6.7 设置服务开机自启 vi /etc/systemd/system/open-resty.service添加 [Unit] Descriptionopen-resty Afternetwork.target remote-fs.target nss-lookup.target mysql8.service zookeeper.service kafka.service nacos-cluster.service[Service] Typeforking ExecStart/usr/local/openresty/nginx/sbin/nginx -c /usr/local/openresty/nginx/conf/nginx.conf PrivateTmptrue[Install] WantedBymulti-user.target ESC :wq保存并退出 6.8 设置开机自启 systemctl enable open-resty.service相关命令记录 禁止开机启动systemctl disable open-resty.service 启动服务systemctl start open-resty.service 停止服务systemctl stop open-resty.service 重启服务systemctl restart open-resty.service 查看服务状态systemctl status open-resty.service 查看所有已启动的服务systemctl list-units --typeservice 部署完毕感谢阅览~ END
http://www.hkea.cn/news/14280772/

相关文章:

  • 三好街做网站公司网站制作长春
  • php响应式网站开发百度云外贸网站建设论坛
  • seo整站优化公司持续监控百度的链接
  • 厦网站建设培训学校wordpress简约博客主题
  • 威海 医院网站建设商品详情页设计模板
  • 响应式网站 价格产品推广计划
  • intitle 郑州网站建设网站开发和程序开发
  • 扬州网站商城建设价格信息免费发布平台
  • 中国建设银行手机网站下载安装用模板做网站需要懂代码吗
  • wordpress淘宝客网站模板网站建设价表模板
  • 哈尔滨网页设计网站模板免费html5网站源码
  • 在网站上做网络课堂软件多少钱怎么开店
  • 家政网站制作线上线下相结合的营销模式
  • 网站域名费用怎么做帐爱获客电销系统
  • 网站系统建设预算国内专业网站设计
  • 怎样做电影网站模型网站大全免费
  • 服务好的企业网站怎么建设it渠道网
  • 关于集团网站建设的修改请示上海巨型网站建设
  • 网站搜索功能如何实现做平面设计兼职的网站
  • 个人建设网站程序青海西宁网站建设
  • 网站建设电话销售开场白wordpress venue
  • 常见网站结构网站游戏网站怎么做
  • 西安网站优化效果terrytao wordpress
  • 制作一个网站人才招聘网网站策划方案
  • 原材料价格查询网站有什么做衣服的网站吗
  • 网站建设 问答wordpress页面回收站位置
  • 设计企业网站如何制作网站地图
  • 网站的建设期破解要钱网站
  • 网站功能建设湛江建设网官方网站
  • 做盗版影视网站租赁商城手机网站开发