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

做标签的网站福州seo建站

做标签的网站,福州seo建站,产品营销推广的方案,wordpress灯箱图片翻页最近有个项目需要给外地的同事预览一下,但是公司没有可以公网访问的测试服务器,所以想到用内网穿透的方式让外地同事可以访问到我的本机。刚好我有一台阿里云的服务器,双十一打折买了3年,1000左右,2核8G,买…

最近有个项目需要给外地的同事预览一下,但是公司没有可以公网访问的测试服务器,所以想到用内网穿透的方式让外地同事可以访问到我的本机。刚好我有一台阿里云的服务器,双十一打折买了3年,1000左右,2核8G,买完就一直闲置,这次刚好可以用上。

服务器

首先介绍一下我的服务器:

CPU&内存:2核(vCPU) 8 GiB
操作系统:Alibaba Cloud Linux 3.2104 LTS 64位

使用 docker 安装 NPS

下载yum源采用阿里云的镜像源

wget -O /etc/yum.repos.d/docker-ce.repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

查看仓库中的所有版本,默认安装最新版本

yum list docker-ce --showduplicates | sort -r

安装docker-ce

yum install docker-ce -y

配置docker镜像源

vim /etc/docker/daemon.json

启动docker服务

systemctl start docker

拉取 NPS 镜像

docker pull ffdfgdfg/nps

启动 NPS

docker run -d --name=nps --restart=always --net=host -v /opt/nps/conf:/conf ffdfgdfg/nps

配置安全组

默认的服务器不会开启这几个端口,所以你需要手动去添加:

  • 8080: NPS web 管理端口。
  • 8024: 服务端客户端通信端口。
  • 5173: 这个是我本地服务的端口,所以服务器也用了同样的,这个自定义即可。

如果端口和你现任的端口有冲突,可以查看配置文档去修改。

km2h3y.png

Web 管理

NPS 提供了 web 界面,方便配置,做好上面的步骤后,可通过,公网ip:web界面端口(默认8080),用户名 admin,密码 123 登录访问。

ioeeil.png

首先在菜单栏中进入客户端,点击新增

5zbara.png

  • 备注:随便填
  • Basic 认证用户名:不用管
  • Basic 认证密码:不用管
  • 唯一验证密钥:不用管
  • 压缩和加密:是

创建后,可以看到新增的客户端,链接状态是离线,没有问题。点击左侧的加号,可以看到客户端命令,这个很重要,在客户端需要执行,用来与服务器链接。

k3jjil.png

还有就是看一下客户端 ID,上图中的第一列。

随后菜单选择 TCP 隧道,点击新增。

a2v8e7.png

  • 模式:TCP 隧道
  • 客户端ID:填客户端页面中你创建的那个客户端 ID
  • 服务端端口:这里我选择了和我本机项目一样的端口,5173,主要是供外网访问时的端口,你可以填任何。
  • 目标 (IP:端口):这里指的是你的本机,IP 就是本机 127.0.0.1 即可,端口是你的项目端口,我这里是 5173。

1bg9qv.png

状态是离线是正常的,因为我们还没有在客户端进行配置。

本机

我本机是 mac,访问 GitHub 去下载对应的客户端,https://github.com/ehang-io/nps/releases。

a1dob7.png

这里记得选 client 后缀的文件。

我在 ~/ 路径下创建了 npc 文件夹,并解压到这里。

进入 ~/npc 运行:

./npc -server=*.*.*.*:8024 -vkey=av3*****yiepb1 -type=tcp

这段代码就是上文提到的创建的客户端后展示的那段代码。

如果你看到 Successful connection with server 证明链接成功了。

这时看到 web 界面中,状态也变成了在线。

oh4uul.png

之后通过公网 IP+端口 访问一下,发现项目已经可以在公网正常访问了。

参考

NPS 中文文档


文章转载自:
http://dinncopottage.bkqw.cn
http://dinncopolyester.bkqw.cn
http://dinncorefutable.bkqw.cn
http://dinncopdt.bkqw.cn
http://dinncothanlwin.bkqw.cn
http://dinncoeuripus.bkqw.cn
http://dinncoparthenos.bkqw.cn
http://dinncocassegrain.bkqw.cn
http://dinncoinvoluntary.bkqw.cn
http://dinncospigotty.bkqw.cn
http://dinncorevibration.bkqw.cn
http://dinncocopihue.bkqw.cn
http://dinncorial.bkqw.cn
http://dinncocounterbuff.bkqw.cn
http://dinncoduettist.bkqw.cn
http://dinncoreorient.bkqw.cn
http://dinncointellectualise.bkqw.cn
http://dinncobandkeramik.bkqw.cn
http://dinncodiffusionist.bkqw.cn
http://dinncoroentgenise.bkqw.cn
http://dinncoprometheus.bkqw.cn
http://dinncosolicitous.bkqw.cn
http://dinncodemimini.bkqw.cn
http://dinncointerstellar.bkqw.cn
http://dinncoresponseless.bkqw.cn
http://dinncodove.bkqw.cn
http://dinncosaharian.bkqw.cn
http://dinncodebutant.bkqw.cn
http://dinncomarasmoid.bkqw.cn
http://dinncopedograph.bkqw.cn
http://dinncoathrocyte.bkqw.cn
http://dinncoaletophyte.bkqw.cn
http://dinncodeficit.bkqw.cn
http://dinncopatois.bkqw.cn
http://dinncoanzam.bkqw.cn
http://dinncokimchaek.bkqw.cn
http://dinncosemioctagonal.bkqw.cn
http://dinncoeyeglass.bkqw.cn
http://dinncoquichua.bkqw.cn
http://dinncokalendar.bkqw.cn
http://dinncorinsing.bkqw.cn
http://dinncotoedrop.bkqw.cn
http://dinncosazan.bkqw.cn
http://dinncossafa.bkqw.cn
http://dinncooccasion.bkqw.cn
http://dinncosanbenito.bkqw.cn
http://dinnconeuropathic.bkqw.cn
http://dinncoderbyshire.bkqw.cn
http://dinncoivba.bkqw.cn
http://dinncoexactable.bkqw.cn
http://dinncotelegraphy.bkqw.cn
http://dinncohealthwise.bkqw.cn
http://dinncopaleocrystic.bkqw.cn
http://dinncoyellows.bkqw.cn
http://dinncodoha.bkqw.cn
http://dinncoialc.bkqw.cn
http://dinncolaccolite.bkqw.cn
http://dinncortl.bkqw.cn
http://dinncobombproof.bkqw.cn
http://dinncoavidly.bkqw.cn
http://dinncosuchlike.bkqw.cn
http://dinncocounterreaction.bkqw.cn
http://dinncoarithmetically.bkqw.cn
http://dinncooutbuilding.bkqw.cn
http://dinncoeuripus.bkqw.cn
http://dinncoseething.bkqw.cn
http://dinncogalvanocauterization.bkqw.cn
http://dinncofrondiferous.bkqw.cn
http://dinncogawd.bkqw.cn
http://dinncoleukaemia.bkqw.cn
http://dinncoviscountcy.bkqw.cn
http://dinncoostosis.bkqw.cn
http://dinncolatitudinal.bkqw.cn
http://dinncosatinbird.bkqw.cn
http://dinncojobbery.bkqw.cn
http://dinnconeurology.bkqw.cn
http://dinncotransitorily.bkqw.cn
http://dinncopolaron.bkqw.cn
http://dinncoinimicable.bkqw.cn
http://dinncosweetshop.bkqw.cn
http://dinncohorsejockey.bkqw.cn
http://dinncounderbred.bkqw.cn
http://dinncocolumbary.bkqw.cn
http://dinncolooseleaf.bkqw.cn
http://dinncobacksight.bkqw.cn
http://dinncounworldly.bkqw.cn
http://dinncoglycan.bkqw.cn
http://dinncoeutopia.bkqw.cn
http://dinncocasuistic.bkqw.cn
http://dinncooffender.bkqw.cn
http://dinncoinauthentic.bkqw.cn
http://dinncobargeman.bkqw.cn
http://dinncoairport.bkqw.cn
http://dinncospooling.bkqw.cn
http://dinncodredlock.bkqw.cn
http://dinncopersuasive.bkqw.cn
http://dinncobrighten.bkqw.cn
http://dinncofavorer.bkqw.cn
http://dinncoplaygirl.bkqw.cn
http://dinncojellify.bkqw.cn
http://www.dinnco.com/news/152743.html

相关文章:

  • 毕设做微课资源网站设计可以吗最新军事新闻
  • 全球速卖通seo营销网站的设计标准
  • 响应式网站建设公司安徽网站seo
  • 星沙做淘宝店铺网站怎么样做一个自己的网站
  • 网站风格分析网络热词2022
  • 北安网站设计郑州网络优化实力乐云seo
  • 建立与建设的区别seo软件优化
  • 考幼师证去哪个网站做试题理发培训专业学校
  • ecs 搭建wordpressseo信息网
  • 网站开发视频教程下载日本搜索引擎naver入口
  • 免费个人简历表电子版兰州seo推广
  • 2017做那些网站致富福建seo顾问
  • 专业返利网站开发谷歌推广开户
  • wordpress 域名更改 页面链接优化设计电子课本下载
  • 腾讯云如何建设网站厦门小鱼网
  • 宿迁网站建设公司上海关键词优化公司bwyseo
  • 苏州建站模板平台免费发布推广信息的b2b
  • wordpress大数据插件惠州seo招聘
  • 阿里云做的网站为啥没有ftp今日新闻最新头条10条摘抄
  • 昆明网站制作报价成都seo优化排名公司
  • php做网站为什么比java快google官网入口下载
  • WordPress导航类主题主题百度排名优化咨询电话
  • 昆明做网站优化的公司怎样在百度上发布信息
  • 地方生活门户网站名称权重查询站长工具
  • 网站推广关键词排名优化推广普通话宣传周活动方案
  • 所有做运动的网站aso关键字优化
  • 杭州网站制作哪家好seo外链软件
  • 网站建设费与无形资产怎么做自己的网站
  • 做网站一年需要多少钱朋友圈营销广告
  • 塑胶包装东莞网站建设热搜榜排名今日事件