blank的编程之路


  • 首页

  • 归档

  • 搜索
consul atomikos mybatisplus druid nexus nas named bind mysqldump acme.sh Dockerfile rsync keepalived swarm kibana ubuntu linux scp bugfix https ssl certbot curl gogs adminer harbor yum portainer python kubernetes idea java springboot maven docker-compose redis nginx mysql brew git chocolatey jenkins elasticsearch docker haproxy rabbitmq centos

windows 包管理器 Chocolatey

发表于 2019-04-08 | 分类于 运维 | 0 | 阅读次数 855

习惯了yum /apt-get / brew ? windows上也可使用 choco

在管理员cmd窗口中执行

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

检查安装

choco 
Chocolatey v0.10.13
Please run 'choco -?' or 'choco <command> -?' for help menu.

如有返回版本号即安装成功

软件用法

安装软件

choco install 软件名

升级软件

choco upgrade 软件名

搜索软件

choco search 软件名

卸载软件

choco uninstall 软件名

安装node

choco install node 

安装maven

choco install maven

安装JDK 8:

choco install jdk8

安装git:

choco install git.install

安装Chrome:

choco install googlechrome

安装IntelliJ IDEA 社区版:

choco install intellijidea-community

安装IntelliJ IDEA 旗舰版:

choco install intellijidea-ultimate

ps 建议安装 定时清理choco 临时文件的软件 choco-cleaner 将在每周日晚上11点执行一次清理脚本

choco install choco-cleaner

当然你也可以自己在安装完成后手动执行清理脚本

C:\ProgramData\chocolatey\lib\choco-cleaner\tools\Choco-Cleaner-manual.bat

考虑权限问题 强烈建议使用管理员运行的cmd来执行 choco 相关命令 否则很有可能会报各种无权限的错误

  • 本文作者: blank
  • 本文链接: https://blankhang.com/2019/04/08/1554734518601
  • 版权声明: 本博客所有文章除特别声明外,均采用CC BY-NC-SA 3.0 许可协议。转载请注明出处!
# consul # atomikos # mybatisplus # druid # nexus # nas # named # bind # mysqldump # acme.sh # Dockerfile # rsync # keepalived # swarm # kibana # ubuntu # linux # scp # bugfix # https # ssl # certbot # curl # gogs # adminer # harbor # yum # portainer # python # kubernetes # idea # java # springboot # maven # docker-compose # redis # nginx # mysql # brew # git # chocolatey # jenkins # elasticsearch # docker # haproxy # rabbitmq # centos
为centos7 开启ROOT远程链接 及 重置ROOT密码
更新mysql 的账号密码
© 2023 blank
Everything is energy and everything has a frequency