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

网站制作手机版网络推广方法有哪些

网站制作手机版,网络推广方法有哪些,如何使用花生壳做网站,网站建设人工费一年多少钱文章目录 前言一、Apinto安装教程1. 复制脚本2. 增加执行权限3. 执行脚本4. Apinto命令4.1 启动Apinto4.2 停止Apinto4.3 重启Apinto4.4 查看Apinto版本信息4.5 加入Apinto集群4.6 离开Apinto集群4.7 查看Apinto节点信息 5. 卸载Apinto 二、Apserver(Apinto Dashboard V3)安装教…

文章目录

  • 前言
  • 一、Apinto安装教程
    • 1. 复制脚本
    • 2. 增加执行权限
    • 3. 执行脚本
    • 4. Apinto命令
      • 4.1 启动Apinto
      • 4.2 停止Apinto
      • 4.3 重启Apinto
      • 4.4 查看Apinto版本信息
      • 4.5 加入Apinto集群
      • 4.6 离开Apinto集群
      • 4.7 查看Apinto节点信息
    • 5. 卸载Apinto
  • 二、Apserver(Apinto Dashboard V3)安装教程
    • 1. 安装条件
    • 2. 安装mysql
    • 3. 安装redis
    • 4. 复制脚本
    • 5. 增加执行权限
    • 6. 执行脚本
    • 7. 浏览器访问
    • 8. Apserver命令
      • 8.1 启动
      • 8.2 停止
      • 8.3 重启
    • 9. 卸载Apserver
  • 总结


前言

本教程将介绍如何安装和配置Apinto以及Apserver(Apinto Dashboard V3)。Apinto是一个开源的API管理工具,用于帮助团队设计、测试和发布API。而Apserver则是为了提供更便捷的可视化操作界面,方便用户管理和监控API。


一、Apinto安装教程

1. 复制脚本

首先,将以下脚本内容复制并保存为/tmp/install_apinto.sh文件。

#!/bin/bash# 安装版本
ad_version="0.15.12"
# 安装目录
ad_installDir="/opt/bigdata/apinto"install() {local version=$1local installDir=$2# 下载地址local downloadUrl="https://github.com/eolinker/apinto/releases/download/v${version}/apinto_v${version}_linux_amd64.tar.gz"if [ -z "$(command -v wget)" ]; thenyum -y install wgetif [ $? -eq 0 ]; thenecho "wget安装完成"elseecho "wget安装失败,请检查"exit 1fifiif [ ! -d "${installDir}" ]; thenmkdir -p "${installDir}"if [ $? -eq 0 ]; thenecho "安装目录${installDir}已创建"elseecho "请确保您有足够的权限来创建目录,请增加权限后再次执行"exit 1fifiif [ ! -f "/tmp/apinto_v${version}_linux_amd64.tar.gz" ] ; thenwget "$downloadUrl" -P /tmpif [ $? -eq 0 ]; thenecho "apinto_v${version}_linux_amd64.tar.gz下载成功"elseecho "apinto_v${version}_linux_amd64.tar.gz下载失败,请重试或手动下载到/tmp目录下再次执行"echo "下载地址:$downloadUrl"exit 1fielseecho "/tmp/apinto_v${version}_linux_amd64.tar.gz文件已存在"fiif [ -d "${installDir}/apinto" ]; thenecho "${installDir}/apinto 已存在,正在删除..."rm -rf "${installDir}/apinto"fitar -zxvf "/tmp/apinto_v${version}_linux_amd64.tar.gz" -C "${installDir}"if [ $? -eq 0 ]; thenecho "apinto_v${version}_linux_amd64.tar.gz解压成功"elseecho "apinto_v${version}_linux_amd64.tar.gz解压失败,请查看异常信息后重试"exit 1ficd ${installDir}/apinto && ./install.sh install && apinto startif [ $? -eq 0 ]; thenecho "apinto 安装并启动成功"elseecho "apinto 安装失败,请查看异常信息后重试"exit 1fi
}install "$ad_version" "$ad_installDir"exit 0

2. 增加执行权限

在终端中执行以下命令,为脚本添加执行权限。

chmod a+x /tmp/install_apinto.sh

3. 执行脚本

执行以下命令,运行脚本开始下载、安装和配置Apinto。

/tmp/install_apinto.sh

请等待安装完成,如有异常会有提示。

成功如下图所示:

在这里插入图片描述

4. Apinto命令

4.1 启动Apinto

apinto start

4.2 停止Apinto

apinto stop

4.3 重启Apinto

apinto restart

4.4 查看Apinto版本信息

apinto version

4.5 加入Apinto集群

被加入的节点自动成为领导者,第一次被加入的节点始终是领导者。例如:从192.168.145.103节点执行apinto join --addr=192.168.145.105:9401,则192.168.145.105是集群的领导者。然后再从192.168.145.104执行apinto join --addr=192.168.145.103:9401192.168.145.105依旧是领导者。

apinto join --addr=192.168.145.105:9401

4.6 离开Apinto集群

apinto leave

4.7 查看Apinto节点信息

apinto info

如下图所示,三个节点,一个领导者。
在这里插入图片描述

5. 卸载Apinto

删除对应文件和目录即可。

rm -rf /run/apinto
rm -rf /etc/apinto
rm -rf /var/lib/apinto
rm -rf /var/log/apinto
rm -rf /tmp/apinto
rm -rf /usr/sbin/apinto
rm -rf /opt/bigdata/apinto

二、Apserver(Apinto Dashboard V3)安装教程

1. 安装条件

  • Mysql 5.7.x或以上版本
    • 作用:存储控制台交互配置
  • Redis 5.0-6.2.7版本,且Redis使用Cluster模式启动
    • 作用:控制台缓存数据库、服务治理节点转发缓存数据库
  • InfluxDB 2.x版本
    • 作用:监控时序数据库,监控程序依赖数据库

2. 安装mysql

  • mysql5.7.44自动化安装教程
  • mysql5.7.37自动化安装教程

3. 安装redis

  • redis6.2.7自动化安装教程

4. 复制脚本

首先,将以下脚本内容复制并保存为/tmp/install_apserver.sh文件。

#!/bin/bash# 安装版本
ad_version="3.3.2"
# 安装目录
ad_installDir="/opt/bigdata/apinto-dashboard"
# mysql设置
mysql_ip='192.168.145.104'
mysql_user='root'
mysql_pw='root'
# Redis扩展集群地址
redis_addr1='192.168.145.105:30001'
redis_addr2='192.168.145.105:30002'
redis_addr3='192.168.145.105:30003'
apserver_port='18080'configyml="port: ${apserver_port}
mysql:user_name: ${mysql_user}password: \"${mysql_pw}\"ip: ${mysql_ip}port: 3306db: apinto
error_log:dir: work/logs               # 日志放置目录, 仅支持绝对路径, 不填则默认为执行程序上一层目录的work/logs. 若填写的值不为绝对路径,则以上一层目录为相对路径的根目录,比如填写 work/test/logs, 则目录为可执行程序所在目录的 ../work/test/logsfile_name: error.log         # 错误日志文件名log_level: warning            # 错误日志等级,可选:panic,fatal,error,warning,info,debug,trace 不填或者非法则为infolog_expire: 7d                # 错误日志过期时间,默认单位为天,d|天,h|小时, 不合法配置默认为7dlog_period: day               # 错误日志切割周期,仅支持day、hour
redis:user_name: \"\"password: \"\"addr:- ${redis_addr1}- ${redis_addr2}- ${redis_addr3}"install() {local version=$1local installDir=$2mysql -h ${mysql_ip} -P 3306 -u${mysql_user} -p${mysql_pw} -e "CREATE DATABASE IF NOT EXISTS apinto CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"if [ $? -eq 0 ]; thenecho "apinto 数据库创建成功"elseecho "apinto 数据库创建失败"exit 1fi# 下载地址local downloadUrl="https://github.com/eolinker/apinto-dashboard/releases/download/v${version}/apserver_v${version}_linux_amd64.tar.gz"if [ -z "$(command -v wget)" ]; thenyum -y install wgetif [ $? -eq 0 ]; thenecho "wget安装完成"elseecho "wget安装失败,请检查"exit 1fifiif [ ! -d "${installDir}" ]; thenmkdir -p "${installDir}"if [ $? -eq 0 ]; thenecho "安装目录${installDir}已创建"elseecho "请确保您有足够的权限来创建目录,请增加权限后再次执行"exit 1fifiif [ ! -f "/tmp/apserver_v${version}_linux_amd64.tar.gz" ] ; thenwget "$downloadUrl" -P /tmpif [ $? -eq 0 ]; thenecho "apserver_v${version}_linux_amd64.tar.gz下载成功"elseecho "apserver_v${version}_linux_amd64.tar.gz下载失败,请重试或手动下载到/tmp目录下再次执行"echo "下载地址:$downloadUrl"exit 1fielseecho "/tmp/apserver_v${version}_linux_amd64.tar.gz文件已存在"fiif [ -d "${installDir}/apserver_v${version}" ]; thenecho "${installDir}/apserver_v${version} 已存在,正在删除..."rm -rf "${installDir}/apserver_v${version}"fitar -zxvf "/tmp/apserver_v${version}_linux_amd64.tar.gz" -C "${installDir}"if [ $? -eq 0 ]; thenecho "apserver_v${version}_linux_amd64.tar.gz解压成功"elseecho "apserver_v${version}_linux_amd64.tar.gz解压失败,请查看异常信息后重试"exit 1ficd ${installDir}/apserver_v${version}./install.shcd /usr/local/apserver/apserver_v${version}echo "$configyml" > config.ymlecho "apinto-dashboard 下载、安装、配置完成"cd /usr/local/apserver/apserver_v${version} && ./run.sh restartif [ $? -eq 0 ]; thenecho "apinto-dashboard 启动成功"echo "浏览器访问:$(ip addr | grep 'inet ' | awk '{print $2}'| tail -n 1 | grep -oP '\d+\.\d+\.\d+\.\d+'):${apserver_port}"echo "账号:admin   密码:12345678"elseecho "apinto-dashboard 启动失败,请查看异常信息并解决后再次启动"echo "日志放置目录:/usr/local/apserver/apserver_v${version}/work/logs"fiecho "安装目录:/usr/local/apserver/apserver_v${version}"echo "启动apinto-dashboard:cd /usr/local/apserver/apserver_v${version} && ./run.sh start"echo "停止apinto-dashboard:cd /usr/local/apserver/apserver_v${version} && ./run.sh stop"echo "重启apinto-dashboard:cd /usr/local/apserver/apserver_v${version} && ./run.sh restart"}install "$ad_version" "$ad_installDir"exit 0

5. 增加执行权限

在终端中执行以下命令,为脚本添加执行权限。

chmod a+x /tmp/install_apserver.sh

6. 执行脚本

执行以下命令,运行脚本开始下载、安装和配置Apserver。

echo y | /tmp/install_apserver.sh

请等待安装完成,如有异常会有提示。

成功如下图所示:

在这里插入图片描述

7. 浏览器访问

浏览器输入输出信息中提示的网址进行访问,然后输入账号密码登录,如下图所示。

在这里插入图片描述
在这里插入图片描述

8. Apserver命令

8.1 启动

cd /usr/local/apserver/apserver_v3.3.2
./run.sh start

8.2 停止

cd /usr/local/apserver/apserver_v3.3.2
./run.sh stop

8.3 重启

cd /usr/local/apserver/apserver_v3.3.2
./run.sh restart

9. 卸载Apserver

删除对应文件和目录即可。

cd /usr/local/apserver/apserver_v3.3.2
./run.sh stop
rm -rf /usr/local/apserver

总结

通过这篇教程,我们学习了如何安装和配置apinto 和 apserver。首先,在第一部分中我们详细讲解了 apinto 的安装过程,并提供了相关命令行指令来启动/停止/重启它。接着,在第二部分中我们介绍了 apserver (Dashboard) 的要求以及安装过程,并提供了相应的命令行指令来管理它。

希望本教程对您有所帮助!如有任何疑问或问题,请随时在评论区留言。感谢阅读!

参考链接:

  • https://help.apinto.com/docs/apinto/system/
  • https://help.eolink.com/tutorial/Apinto/c-1406

文章转载自:
http://dinncoshofar.tqpr.cn
http://dinncobroadcasting.tqpr.cn
http://dinncopaddleball.tqpr.cn
http://dinncogabonese.tqpr.cn
http://dinncomonocled.tqpr.cn
http://dinncobelsen.tqpr.cn
http://dinncoplastics.tqpr.cn
http://dinnconuncupation.tqpr.cn
http://dinncoartifact.tqpr.cn
http://dinncoaurification.tqpr.cn
http://dinncolander.tqpr.cn
http://dinncoroundish.tqpr.cn
http://dinncoprejudicious.tqpr.cn
http://dinncoustulate.tqpr.cn
http://dinncoagminate.tqpr.cn
http://dinncopyrrhic.tqpr.cn
http://dinncoworldful.tqpr.cn
http://dinncocolliery.tqpr.cn
http://dinncoanaphase.tqpr.cn
http://dinncocameo.tqpr.cn
http://dinncoadrenocortical.tqpr.cn
http://dinncopalmar.tqpr.cn
http://dinncocentrosymmetric.tqpr.cn
http://dinncoflense.tqpr.cn
http://dinncocreationism.tqpr.cn
http://dinncoabettor.tqpr.cn
http://dinncofeldsher.tqpr.cn
http://dinncostrathclyde.tqpr.cn
http://dinncocircumglobal.tqpr.cn
http://dinncoforecabin.tqpr.cn
http://dinncoresurge.tqpr.cn
http://dinncoalcoa.tqpr.cn
http://dinncotelepathist.tqpr.cn
http://dinncophorbol.tqpr.cn
http://dinncoblessedness.tqpr.cn
http://dinncosplotchy.tqpr.cn
http://dinncophysical.tqpr.cn
http://dinncopriapitis.tqpr.cn
http://dinncosubito.tqpr.cn
http://dinncoargue.tqpr.cn
http://dinncocountermelody.tqpr.cn
http://dinncoasana.tqpr.cn
http://dinncoprecool.tqpr.cn
http://dinncoempirism.tqpr.cn
http://dinncoscutella.tqpr.cn
http://dinncounder.tqpr.cn
http://dinncoperiplast.tqpr.cn
http://dinncoscraper.tqpr.cn
http://dinncohalling.tqpr.cn
http://dinncocrony.tqpr.cn
http://dinncolacquey.tqpr.cn
http://dinncophotooxidation.tqpr.cn
http://dinncopurulency.tqpr.cn
http://dinncoslavist.tqpr.cn
http://dinncoextemporal.tqpr.cn
http://dinncoiodometry.tqpr.cn
http://dinncosurgeon.tqpr.cn
http://dinncotramroad.tqpr.cn
http://dinncoancona.tqpr.cn
http://dinncoconnatural.tqpr.cn
http://dinncocourge.tqpr.cn
http://dinncodiversely.tqpr.cn
http://dinnconartjie.tqpr.cn
http://dinncohg.tqpr.cn
http://dinncorevalorization.tqpr.cn
http://dinncopreviously.tqpr.cn
http://dinncojeans.tqpr.cn
http://dinncoantibusiness.tqpr.cn
http://dinncolowering.tqpr.cn
http://dinncorootworm.tqpr.cn
http://dinncohpgc.tqpr.cn
http://dinncopigeon.tqpr.cn
http://dinncoheadland.tqpr.cn
http://dinncodittybop.tqpr.cn
http://dinncoburger.tqpr.cn
http://dinncoterra.tqpr.cn
http://dinncomoviemaker.tqpr.cn
http://dinncoinvectively.tqpr.cn
http://dinncoanchorpeople.tqpr.cn
http://dinncobleeding.tqpr.cn
http://dinncomamba.tqpr.cn
http://dinncoangiotensin.tqpr.cn
http://dinncoaudiolingual.tqpr.cn
http://dinncoadmetus.tqpr.cn
http://dinncorosaceous.tqpr.cn
http://dinncoanglaise.tqpr.cn
http://dinncoseller.tqpr.cn
http://dinncodeluster.tqpr.cn
http://dinncoaero.tqpr.cn
http://dinncostralsund.tqpr.cn
http://dinncointromission.tqpr.cn
http://dinncoloudspeaker.tqpr.cn
http://dinncothrapple.tqpr.cn
http://dinncoliquefaction.tqpr.cn
http://dinncounderachieve.tqpr.cn
http://dinncotach.tqpr.cn
http://dinncoearl.tqpr.cn
http://dinncodancery.tqpr.cn
http://dinncointerrex.tqpr.cn
http://dinncovernally.tqpr.cn
http://www.dinnco.com/news/117968.html

相关文章:

  • 网站建设优化保定市场营销网站
  • 泰州网站制作套餐电商培训内容
  • 做网站用是内网穿透好保定seo博客
  • 沈阳男科医院哪家有名seo搜索引擎优化是什么
  • 自建网站过程推广文案
  • 网站logo怎么设置seo优化软件购买
  • wordpress订单系统网站seo关键词优化技巧
  • 滨江网站制作制作网站的步骤
  • wordpress改底部信息深圳seo优化
  • 合肥 网站建设口碑营销的重要性
  • 三亚网站推广团队博客seo怎么做
  • vs2013 手机网站开发上海免费关键词排名优化
  • 网站空间 云端itmc平台seo优化关键词个数
  • wordpress谷歌网站地图网站推广郑州
  • bl 做视频网站高质量关键词搜索排名
  • 沧县网站制作南宁关键词优化服务
  • 招聘 负责网站开发网页制作模板的网站
  • 沈阳小程序开发公司哪家好专业搜索引擎seo服务商
  • 济宁网站建设培训发布软文平台
  • 软件推广app福州seo网络推广
  • 只做正品的购物网站网站推广和优化的原因
  • 有哪些网站可以做印度市场调研竞价广告
  • 网站建设 后端前端全网营销整合推广
  • 正规网站建设公司一般要多少钱seo专员工作内容
  • 北京微网站设计网络推广有效果吗
  • 网站建设栏目规划河南制作网站公司
  • 广州自助建站服务热线app有哪些推广方式
  • 宝坻手机网站建设中山口碑seo推广
  • 河北建设集团官网哪家公司做推广优化好
  • 网站浏览量提升网站推广的具体方案