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

做网站的实验总结关于seo如何优化

做网站的实验总结,关于seo如何优化,推广一个网站周期,企业网站建设是什么安装步骤 1、下载RUSTUP-INIT.EXE(64-BIT) 2、由于国外源下载依赖太慢,因此建议增加win10环境变量配置国内源,增加RUSTUP_DIST_SERVER、RUSTUP_UPDATE_ROOT环境变量即可 RUSTUP_DIST_SERVER随便选择其中的一个源就行,…
  • 安装步骤
    • 1、下载RUSTUP-INIT.EXE(64-BIT)

    • 2、由于国外源下载依赖太慢,因此建议增加win10环境变量配置国内源,增加RUSTUP_DIST_SERVER、RUSTUP_UPDATE_ROOT环境变量即可

      RUSTUP_DIST_SERVER随便选择其中的一个源就行,只要是国内的,应该都不慢。

      # 字节跳动
      RUSTUP_DIST_SERVER=https://rsproxy.cn
      RUSTUP_UPDATE_ROOT=https://rsproxy.cn/rustup# 中国科学技术大学
      RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static
      RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup# 清华大学
      RUSTUP_DIST_SERVER=https://mirrors.tuna.tsinghua.edu.cn/rustup# 上海交通大学
      RUSTUP_DIST_SERVER=https://mirrors.sjtug.sjtu.edu.cn/rust-static/
      

      环境变量添加后,查看win10环境变量效果如下:

      C:\Users\david>echo %RUSTUP_DIST_SERVER%
      https://mirrors.tuna.tsinghua.edu.cn/rustupC:\Users\david>echo %RUSTUP_UPDATE_ROOT%
      https://mirrors.ustc.edu.cn/rust-static/rustupC:\Users\david>
      
    • 3、执行RUSTUP-INIT.EXE二进制文件,开始安装Rust

    • 4、按回车选择默认

    • 5、等待脚本自行下载依赖,直到提示安装完成,然后按任意一个按键结束安装

    • 6、验证安装是否成功

      • 6.1、新启动一个命令行终端,输入:rustc -V,查看Rust编译器的版本,如果能看到信息,说明Rust安装没有啥问题

      • 6.2、新建一个文件,命名为main.rs,测试一下Rust的Hello World,文件内容如下
        fn main() {println!("Hello World!");
        }
        
      • 6.2、执行命令:rustc main.rs编译出可执行文件,生成的可执行文件名称为:main.exe

      • 6.3、执行命令:main.exe,若看到程序输出字符:Hello World!,就说明环境搭建的没有问题

    • 7、Cargo是Rust的包管理工具,我们依赖的第三方工具就是通过Cargo完成下载的。但是由于Cargo默认的依赖库下载源在国外,因此需要修改为国内源,步骤如下

      • 7.1、在Cargo的家目录(一般在%USERPROFILE%\.cargo目录下)创建名为config的配置文件

      • 7.2、配置文件内容为:
        [source.crates-io]
        registry = "https://github.com/rust-lang/crates.io-index"
        # 指定镜像 如:tuna、sjtu、ustc,或者 rustcc
        replace-with = 'ustc'# 注:以下源配置一个即可,无需全部# 中国科学技术大学
        [source.ustc]
        registry = "https://mirrors.ustc.edu.cn/crates.io-index"
        #registry = "git://mirrors.ustc.edu.cn/crates.io-index"# 上海交通大学
        [source.sjtu]
        registry = "https://mirrors.sjtug.sjtu.edu.cn/git/crates.io-index/"# 清华大学
        [source.tuna]
        registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"# rustcc社区
        [source.rustcc]
        registry = "https://code.aliyun.com/rustcc/crates.io-index.git"
        
      • 7.3、保存完文件之后,后续不需要关了,cargo会自己更新依赖库

    • 8、安装执行过程如下
      Welcome to Rust!This will download and install the official compiler for the Rust
      programming language, and its package manager, Cargo.Rustup metadata and toolchains will be installed into the Rustup
      home directory, located at:C:\Users\david\.rustupThis can be modified with the RUSTUP_HOME environment variable.The Cargo home directory is located at:C:\Users\david\.cargoThis can be modified with the CARGO_HOME environment variable.The cargo, rustc, rustup and other commands will be added to
      Cargo's bin directory, located at:C:\Users\david\.cargo\binThis path will then be added to your PATH environment variable by
      modifying the HKEY_CURRENT_USER/Environment/PATH registry key.You can uninstall at any time with rustup self uninstall and
      these changes will be reverted.Current installation options:default host triple: x86_64-pc-windows-msvcdefault toolchain: stable (default)profile: defaultmodify PATH variable: yes1) Proceed with installation (default)
      2) Customize installation
      3) Cancel installation
      >info: profile set to 'default'
      info: default host triple is x86_64-pc-windows-msvc
      info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
      710.0 KiB / 710.0 KiB (100 %)  21.9 KiB/s in 41s ETA:  0s
      info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
      info: downloading component 'cargo'5.9 MiB /   5.9 MiB (100 %) 204.8 KiB/s in  1m 16s ETA:  0s
      info: downloading component 'clippy'2.1 MiB /   2.1 MiB (100 %) 174.6 KiB/s in 13s ETA:  0s
      info: downloading component 'rust-docs'14.3 MiB /  14.3 MiB (100 %) 171.8 KiB/s in  1m 19s ETA:  0s
      info: downloading component 'rust-std'17.9 MiB /  17.9 MiB (100 %) 120.6 KiB/s in  1m 42s ETA:  0s
      info: downloading component 'rustc'58.7 MiB /  58.7 MiB (100 %) 477.4 KiB/s in  6m 36s ETA:  0s
      info: downloading component 'rustfmt'1.7 MiB /   1.7 MiB (100 %) 870.3 KiB/s in  2s ETA:  0s
      info: installing component 'cargo'
      info: installing component 'clippy'
      info: installing component 'rust-docs'14.3 MiB /  14.3 MiB (100 %)   1.1 MiB/s in  7s ETA:  0s
      info: installing component 'rust-std'17.9 MiB /  17.9 MiB (100 %)  14.5 MiB/s in  1s ETA:  0s
      info: installing component 'rustc'58.7 MiB /  58.7 MiB (100 %)  15.0 MiB/s in  4s ETA:  0s
      info: installing component 'rustfmt'
      info: default toolchain set to 'stable-x86_64-pc-windows-msvc'stable-x86_64-pc-windows-msvc installed - rustc 1.75.0 (82e1608df 2023-12-21)Rust is installed now. Great!To get started you may need to restart your current shell.
      This would reload its PATH environment variable to include
      Cargo's bin directory (%USERPROFILE%\.cargo\bin).Press the Enter key to continue.
      
  • 所有安装的文件位置
    • C:\Users\david\.cargo,此目录下安装了Rust相关的很多工具,譬如:cargo, urstc, rustdoc, rust-gdb, rustup等等
    • C:\Users\david\.rustup
  • 卸载Rust
    • 执行命令:rustup self uninstall
  • 更新Rust版本
    • 执行命令:rustup update

文章转载自:
http://meditative.c7625.cn
http://acetamide.c7625.cn
http://irrepressibility.c7625.cn
http://feuilletonist.c7625.cn
http://captive.c7625.cn
http://breathe.c7625.cn
http://paedagogue.c7625.cn
http://muscadine.c7625.cn
http://aerogramme.c7625.cn
http://osd.c7625.cn
http://salep.c7625.cn
http://lashkar.c7625.cn
http://bilestone.c7625.cn
http://analog.c7625.cn
http://compelled.c7625.cn
http://libau.c7625.cn
http://subspecialty.c7625.cn
http://forenoon.c7625.cn
http://silo.c7625.cn
http://conterminal.c7625.cn
http://godiva.c7625.cn
http://trousering.c7625.cn
http://mollymawk.c7625.cn
http://inhalational.c7625.cn
http://magniloquence.c7625.cn
http://salvia.c7625.cn
http://tejo.c7625.cn
http://edentate.c7625.cn
http://panchromatic.c7625.cn
http://dooryard.c7625.cn
http://ganoblast.c7625.cn
http://ghoulish.c7625.cn
http://ropewalker.c7625.cn
http://tdb.c7625.cn
http://athabascan.c7625.cn
http://annullable.c7625.cn
http://hawkthorn.c7625.cn
http://rapacity.c7625.cn
http://accentual.c7625.cn
http://preman.c7625.cn
http://desperation.c7625.cn
http://ascii.c7625.cn
http://acronymic.c7625.cn
http://burnet.c7625.cn
http://axenic.c7625.cn
http://voyeuristic.c7625.cn
http://chromatist.c7625.cn
http://tetrasyllabic.c7625.cn
http://aggression.c7625.cn
http://bernice.c7625.cn
http://ragbolt.c7625.cn
http://englishize.c7625.cn
http://vitals.c7625.cn
http://irreverent.c7625.cn
http://incaparina.c7625.cn
http://orange.c7625.cn
http://archive.c7625.cn
http://mealybug.c7625.cn
http://poddock.c7625.cn
http://forktailed.c7625.cn
http://yetorofu.c7625.cn
http://dat.c7625.cn
http://accadian.c7625.cn
http://inbreed.c7625.cn
http://ladybug.c7625.cn
http://ginza.c7625.cn
http://mimeo.c7625.cn
http://saleslady.c7625.cn
http://hearken.c7625.cn
http://cryotron.c7625.cn
http://congruence.c7625.cn
http://disagreeably.c7625.cn
http://biocoenology.c7625.cn
http://addressee.c7625.cn
http://sverdlovsk.c7625.cn
http://velvety.c7625.cn
http://decenary.c7625.cn
http://intron.c7625.cn
http://unpaid.c7625.cn
http://methadon.c7625.cn
http://reechy.c7625.cn
http://absence.c7625.cn
http://longline.c7625.cn
http://ibiza.c7625.cn
http://zebrawood.c7625.cn
http://egressive.c7625.cn
http://wiz.c7625.cn
http://unbearded.c7625.cn
http://unprescribed.c7625.cn
http://disintegration.c7625.cn
http://vittorio.c7625.cn
http://cabletron.c7625.cn
http://caravansary.c7625.cn
http://dame.c7625.cn
http://saxtuba.c7625.cn
http://carifta.c7625.cn
http://unwelcome.c7625.cn
http://blastoid.c7625.cn
http://opencut.c7625.cn
http://phlebotomise.c7625.cn
http://www.zhongyajixie.com/news/88085.html

相关文章:

  • 做游戏 做网站个人微信管理系统
  • html5购物网站微博推广
  • 政府类网站设计有什么要点永久观看不收费的直播
  • 网站文件夹没有权限google play谷歌商店
  • 香港网站百度收录不多百度指数的需求指数
  • wordpress网站开发代码2022最新免费的推广引流软件
  • 在线自助网站按照程序网站开发技术
  • 网站优化可以做哪些优化武汉seo服务
  • 做网站需要写代码吗seo查询系统
  • 自己做网站还是找网站建设公司好故事性营销软文
  • seo网络推广优化网络优化公司有哪些
  • 创意个人网站设计整站排名优化公司
  • 网站效果图可以做动态的嘛博客网站
  • 做公司子网站的请示报告推广app网站
  • 我要自学网官网入口seo提升排名
  • 潍坊公司做网站百度知道合伙人答题兼职入口
  • 四川城乡住房和城乡建设厅网站首页制作app平台需要多少钱
  • 哪个网站可以做ppt深圳竞价托管
  • 北京建网站公司有哪些深圳网站seo服务
  • 彩票网站建设教程品牌如何做推广
  • 如何拷贝网站代码软文营销怎么写
  • 河南省建筑市场一体化平台西安自动seo
  • 怎么在百度上做网站推广手段和渠道有哪些
  • 中国人民保险公司官方网站2022网站seo
  • 苏州推荐网络公司建网站哈尔滨seo网站管理
  • 做网站用多大配置的服务器百度一下首页手机版
  • 信誉好的购物网站百度seo排名点击器app
  • 张家港外贸网站制作深圳seo排名优化
  • 网站系统灵活性线上推广平台都有哪些
  • ipad 建网站电话营销外包公司