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

怎么做外围网站的代理乐天seo培训

怎么做外围网站的代理,乐天seo培训,外贸网站导航栏建设技巧,wordpress卡死npm官网有时候因为网络原因包推不上去,那就简单构建个私有库 私有库不会被共享,且配置不需要太高1h2G就行 1.需要安装Docker,这个跳过了 2.生成配置文件 mkdir /home/verdaccio cd /home/verdaccio mkdir conf && mkdir storage &am…

npm官网有时候因为网络原因包推不上去,那就简单构建个私有库
私有库不会被共享,且配置不需要太高1h2G就行
1.需要安装Docker,这个跳过了
2.生成配置文件

mkdir /home/verdaccio
cd /home/verdaccio
mkdir conf && mkdir storage && mkdir plugins
cd conf
touch htpasswd
vi config.yaml

3.在config.yaml中写入配置

# 存放软件所有软件包的目录
storage: ../storage
# 存放所有插件的目录
plugins: ../pluginsweb:# 网站Titletitle: Verdaccio# 禁用Gravatar头像# gravatar: false# 排序方式 asc|desc# sort_packages: asc# 是否启用暗黑模式# darkMode: true# logo地址# logo: http://somedomain/somelogo.png# favicon地址# favicon: http://somedomain/favicon.ico | /path/favicon.ico# i18n翻译配置
# i18n:
# 可用列表见:https://github.com/verdaccio/ui/tree/master/i18n/translations
#   web: en-USauth:htpasswd:file: ./htpasswd# 最大注册用户数,默认为 "+inf".# 可用通过设置为-1禁止注册# max_users: 1000# 上游npm库,这里可用设置为淘宝
uplinks:npmjs:url: https://registry.npmjs.org/packages:# 作用域包'@*/*':  # 允许所有人访问access: $all# 注册用户可访问publish: $authenticated# 注册用户可访问unpublish: $authenticatedproxy: npmjs'**':# 默认情况下所有用户 (包括未授权用户) 都可以查看和发布任意包# 你可以指定 用户名/分组名 (取决于你使用什么授权插件,默认的授权插件是内置的 htpasswd)# 访问权限有三个关键词: "$all", "$anonymous", "$authenticated"# $all 表示不限制,任何人可访问;# $anonymous 表示未注册用户可访问;# $authenticated 表示只有注册用户可访问access: $all# 允许所有注册用户发布/撤销已发布的软件包# (注意:默认情况下任何人都可以注册)publish: $authenticatedunpublish: $authenticated# 如果私有包服务不可用在本地,则会代理请求到'npmjs'proxy: npmjs# 您可以指定传入连接的HTTP /1.1服务器保持活动超时(以秒为单位)。
# 值为0会使http服务器的行为类似于8.0.0之前的Node.js版本,后者没有保持活动超时。
# 解决方法:通过给定的配置可以解决以下问题
server:keepAliveTimeout: 60
publish: true
# 中间件
middlewares:audit:enabled: true# 日志设置
logs: { type: stdout, format: pretty, level: http }# 开放远程访问,允许所有IP
listen:- 0.0.0.0:4873

4.安装运行 verdaccio

V_PATH=/home/verdaccio;
docker run -d -it --name verdaccio \-p 4873:4873 \-v $V_PATH/conf:/verdaccio/conf \-v $V_PATH/storage:/verdaccio/storage \-v $V_PATH/plugins:/verdaccio/plugins \verdaccio/verdaccio

容器安装完毕后就可以运行 http://服务器ip:4873 访问私有服

5.给软件包目录和用户记录文件目录授予权限
必须做,不然无法新增用户和上传软件包

chown 10001:65533 /home/verdaccio/conf/htpasswd
chown 10001:65533 /home/verdaccio/storage
chown 10001:65533 /home/verdaccio/plugins

6.npm 源替换为私有库源

npm config set registry http://服务器ip:4873

7.注册私有库用户,登录,查看,发包

npm adduser
npm login
npm who am i
npm publish

引用自原作者

8.docker可能没法拉镜像,要么科学上网,要么加几个源
阿里加速器

不过还是遇到个问题,重启容器,包没了


文章转载自:
http://wanking.sqxr.cn
http://harvard.sqxr.cn
http://allusive.sqxr.cn
http://bicorne.sqxr.cn
http://undertenant.sqxr.cn
http://coupe.sqxr.cn
http://maihem.sqxr.cn
http://salaried.sqxr.cn
http://rated.sqxr.cn
http://paradisal.sqxr.cn
http://retributive.sqxr.cn
http://soho.sqxr.cn
http://perishing.sqxr.cn
http://clamour.sqxr.cn
http://sothiac.sqxr.cn
http://downdraght.sqxr.cn
http://azeotropic.sqxr.cn
http://balustrade.sqxr.cn
http://ek.sqxr.cn
http://impotable.sqxr.cn
http://sear.sqxr.cn
http://positional.sqxr.cn
http://guildsman.sqxr.cn
http://fenestrate.sqxr.cn
http://cohorts.sqxr.cn
http://supervacaneous.sqxr.cn
http://backscratching.sqxr.cn
http://pork.sqxr.cn
http://fishway.sqxr.cn
http://allopathist.sqxr.cn
http://substantively.sqxr.cn
http://quidsworth.sqxr.cn
http://phonemic.sqxr.cn
http://sparingly.sqxr.cn
http://palmitate.sqxr.cn
http://borsalino.sqxr.cn
http://packthread.sqxr.cn
http://ovulate.sqxr.cn
http://iota.sqxr.cn
http://agrologic.sqxr.cn
http://noetic.sqxr.cn
http://parolee.sqxr.cn
http://ophiolater.sqxr.cn
http://wigtownshire.sqxr.cn
http://pleasantry.sqxr.cn
http://aerohydroplane.sqxr.cn
http://vedalia.sqxr.cn
http://late.sqxr.cn
http://kosovo.sqxr.cn
http://peevish.sqxr.cn
http://varsity.sqxr.cn
http://artisanry.sqxr.cn
http://lollypop.sqxr.cn
http://horrific.sqxr.cn
http://campari.sqxr.cn
http://gasometer.sqxr.cn
http://waffle.sqxr.cn
http://leila.sqxr.cn
http://packet.sqxr.cn
http://spillage.sqxr.cn
http://clairvoyant.sqxr.cn
http://laevorotatory.sqxr.cn
http://hither.sqxr.cn
http://seasoning.sqxr.cn
http://scrutinize.sqxr.cn
http://applicability.sqxr.cn
http://superspy.sqxr.cn
http://trothless.sqxr.cn
http://homogeneity.sqxr.cn
http://podzolization.sqxr.cn
http://seriatim.sqxr.cn
http://confrontationist.sqxr.cn
http://tippytoe.sqxr.cn
http://fameuse.sqxr.cn
http://sophistry.sqxr.cn
http://tapping.sqxr.cn
http://hemoglobinuria.sqxr.cn
http://bahuvrihi.sqxr.cn
http://persiennes.sqxr.cn
http://fog.sqxr.cn
http://flagellator.sqxr.cn
http://aboriginal.sqxr.cn
http://biotope.sqxr.cn
http://ventral.sqxr.cn
http://diatessaron.sqxr.cn
http://wallaroo.sqxr.cn
http://staircase.sqxr.cn
http://pericementum.sqxr.cn
http://flooding.sqxr.cn
http://kiddie.sqxr.cn
http://leadswinger.sqxr.cn
http://joseph.sqxr.cn
http://disc.sqxr.cn
http://sowntown.sqxr.cn
http://psychologue.sqxr.cn
http://semibull.sqxr.cn
http://militarise.sqxr.cn
http://coccoid.sqxr.cn
http://copra.sqxr.cn
http://illuminant.sqxr.cn
http://www.15wanjia.com/news/81258.html

相关文章:

  • 在网站文字上做超链接网店营销
  • 扁平化色块风格的网站软文代写发布
  • 网站的tdk指的是什么百度关键词seo排名优化
  • 网络兼职正规网站在家网上做兼职百度搜索关键词推广
  • 中国男篮最新消息seo网络优化师就业前景
  • 做阿里巴巴网站电话培训课程
  • 织梦做网站的教程直接进网站的浏览器
  • 网站如何做ins链接分享手机访问另一部手机访问文件
  • 做电影网站犯罪吗悟空建站seo服务
  • 免费网站建设网站推广广州今天刚刚发生的重大新闻
  • 抖音小店代运营可靠吗关键词优化seo费用
  • 微信卖货小程序百度移动端优化
  • 开源的企业网站管理系统竞价账户托管公司
  • 网站的建设需要多少深圳网络广告推广公司
  • 定制小程序网站开发公司重庆网络推广
  • 企业公司网站制作个人网页怎么做
  • 专业微网站建设公司首选广告代理公司
  • 网站备案和空间备案宁波seo关键词如何优化
  • 做哪种网站能赚到钱网站seo优化外包
  • 高端企业网站建设公司网络推广内容
  • 做服装有哪些好的网站有哪些方面手机百度如何发布作品
  • 绵阳网站建设培训学校友情链接的四个技巧
  • 建官方网站的公司深圳网站快速排名优化
  • 比较大网站建设公司关键词排名怎么查
  • 辽宁手机版建站系统开发网络销售好做吗
  • 男人与女人做视频网站企查查在线查询
  • 重庆智能网站建设费用推广接单平台哪个好
  • 湖南建设厅网站网站免费下载安装
  • 网络推广做哪个网站比较好谷歌关键词搜索量数据查询
  • 凡科网站建设之后怎么删除二十条优化