标签搜索

目 录CONTENT

文章目录

mac m1安装环境

高大北
2022-07-26 / 0 评论 / 2 点赞 / 163 阅读 / 1,553 字 / 正在检测是否收录...

开发环境

mac安装 jdk

jdk1.8/11

默认的安装位置
cd /Library/Java/JavaVirtualMachines

https://www.azul.com/downloads/?version=java-8-lts&os=macos&architecture=arm-64-bit&package=jdk

1.8

链接: https://pan.baidu.com/s/1z8o9uuQc9aXSNpjd3IrkiQ 提取码: tjrq 

11

链接: https://pan.baidu.com/s/1z8o9uuQc9aXSNpjd3IrkiQ 提取码: tjrq 

vim ~/.zshrc 修改一次 vim ~/.bash_profile在修改一次

# jdk
export JAVA_8_HOME=/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home
export JAVA_11_HOME=/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home
export JAVA_HOME=$JAVA_8_HOME

# alias 命令动态切换 JDK 版本
alias jdk8="export JAVA_HOME=$JAVA_8_HOME"
alias jdk11="export JAVA_HOME=$JAVA_11_HOME"


export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
# jdk end
          

最后 source /etc/profile ~/.bash_profile ~/.zshrc
就可以使用。jdk8 jdk11随意切换了

mac安装postman

链接: https://pan.baidu.com/s/1gH7eRdegAmIHfUURDv9HXw 提取码: g7y9 

mac安装maven

链接: https://pan.baidu.com/s/1Pnn5ca2T-msjtbIWYOyAZg 提取码: rvge 
vim ~/.zshrc
export MAVEN_HOME=/Users/gaotengfei/hj/apache-maven-3.8.4    
export PATH=$PATH:$MAVEN_HOME/bin
source ~/.zshrc

mac安装apache-jmeter-5.5

https://atgfwacnz-my.sharepoint.com/:f:/g/personal/gtfonedriver_365vip_eu_org/EqkhjrYC3L9Lvfj7rKSlzAoBOugdA7ixJ-Nm92hrgUY_xg?e=NByQeI

mac安装Homebrew

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
git config --global --add safe.directory /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core

git config --global --add safe.directory /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask

Mac M1配置node、Vue环境

使用nvm安装

brew install nvm

brew info nvm
会根据你本机的配置情况得到相应的安装提示:
image-1658844906422
根据提示配置shell文件即可。

$ nvm ls 列出所有已经安装的版本
$ nvm ls-remote 查看 所有的node可用版本

$ nvm install xxx 下载你想要的版本

$ nvm use xxx 使用指定版本的node 
$ nvm current 显示当前使用的版本$ nvm alias default xxx 每次启动终端都使用该版本的node

安装node

查看可用版本之后,发现最新是16的

nvm install 16
npm config set registry https://registry.npm.taobao.org # 换源
npm config get registry #查看源

安装yarn

npm install -g yarn
npm install -g cnpm
cnpm install --global vue-cli

mac安装git

brew install git

mac安装docker

image-1658823480602

官方地址
https://docs.docker.com/desktop/install/mac-install
网盘地址
链接: https://pan.baidu.com/s/1m5Xz7D0Ezw_fyvWIKkKV-A 提取码: yqrx 

修改文件

{
    "builder": {
        "gc": {
            "defaultKeepStorage": "20GB",
            "enabled": true
        }
    },
    "experimental": false,
    "features": {
        "buildkit": true
    },
    "registry-mirrors": [
        "https://pb5bklzr.mirror.aliyuncs.com",
        "https://hub-mirror.c.163.com",
        "https://docker.mirrors.ustc.edu.cn"
    ]
}

docker安装mysql8.0

docker pull mysql/mysql-server
docker run --name mysql01 -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 -d mysql/mysql-server
docker exec -it 2cbb0f246353 /bin/bash
mysql -u root -p
use mysql ;
update user set Host='%' where User='root' ;
flush privileges ;

docker安装mysql5.7

docker run --name mysql -p 3307:3306 -d -e MYSQL_ROOT_PASSWORD=123456 ibex/debian-mysql-server-5.7
链接: https://pan.baidu.com/s/1s6hv8o_h5iDVqFZhMeU3ow 提取码: gy95 

elasticsearch

docker pull elasticsearch:7.16.2
docker ps

docker run -e ES_JAVA_OPTS="-Xms256m -Xmx256m" -e "discovery.type=single-node" -d -p 9200:9200 -p 9300:9300 --name elasticsearch e082d8ac7e5e

验证 浏览器访问 http://localhost:9200

kibana

docker pull kibana:7.16.2
docker run --name kibana -e ELASTICSEARCH_HOSTS=http://192.168.0.139:9200 -p 5601:5601 -d kibana:7.16.2

docker安装Nacos

不连接数据库

docker run --env MODE=standalone --name nacos2.0.3 -d -p 8848:8848 -p 9848:9848 -p 9849:9849  zhusaidong/nacos-server-m1:2.0.3
//查看日志
docker logs -f 

链接数据库

数据库脚本

链接: https://pan.baidu.com/s/1eZjywXkyWTTTpxYo2yDntA 提取码: jqdy 
docker exec -it aaa8718e59b7 bash
vim conf/application.properties
# spring 
server.servlet.contextPath=${SERVER_SERVLET_CONTEXTPATH:/nacos} server.contextPath=/nacos server.port=${NACOS_APPLICATION_PORT:8848} 
# 这里改为mysql 
spring.datasource.platform=mysql 
nacos.cmdb.dumpTaskInterval=3600 
nacos.cmdb.eventTaskInterval=10 
nacos.cmdb.labelTaskInterval=300 
nacos.cmdb.loadDataAtStart=false 
db.num=${MYSQL_DATABASE_NUM:1} 
# 这里=号后面改为这种 192.168.45.19是电脑的局域网ip,并非127.0.0.1和localhost,怎么看都话自行度娘 
db.url.0=jdbc:mysql://192.168.45.19:3306/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC 
# 这里改为数据库用户名和密码 
db.user=root 
db.password=123456 
### The auth system to use, currently only 'nacos' is supported: nacos.core.auth.system.type=${NACOS_AUTH_SYSTEM_TYPE:nacos}

完整配置截图
image-1658979074817

docker安装sentinel

docker pull bladex/sentinel-dashboard:latest

使用docker images 替换下面加粗字体
docker run --name sentinel -d -p 8858:8858 aa398704ebd3

docker 安装redis

docker pull redis:latest
docker run -itd --name redis-test -p 6379:6379 redis

Redis Desktop Manager 2021.10.236 中文破解版 (Redis 数据库管理工具)

链接: https://pan.baidu.com/s/1cr4c59ZUjnOoeDhhu_J8jQ 提取码: amc3 

docker安装kafka+zk

docker run -d --name zookeeper -p 2181:2181 -t wurstmeister/zookeeper
docker run -d --name xdclass_kafka \
-p 9092:9092 \
-e KAFKA_BROKER_ID=0 \
--env KAFKA_HEAP_OPTS=-Xmx256M \
--env KAFKA_HEAP_OPTS=-Xms128M \
-e KAFKA_ZOOKEEPER_CONNECT=内网ip:2181 \
-e KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9092 \
-e KAFKA_LISTENERS=PLAINTEXT://0.0.0.0:9092 wurstmeister/kafka:2.13-2.7.0

docker安装zk

docker run --name=zookeeper -d -e ZOOKEEPER_CLIENT_PORT=2181 -p 2181:2181 -p 2888:2888 -p 3888:3888 zookeeper:3.6

docker安装rabbitmq

docker run -d --hostname my-rabbit --name rabbit -p 15672:15672 -p 5672:5672 rabbitmq

docker ps 
docker exec -it 镜像ID /bin/bash
rabbitmq-plugins enable rabbitmq_management

idea

链接: https://pan.baidu.com/s/1EG3J1eOI4PUMypan1b_png 提取码: berq 

fineagent.jar,
将该文件复制到 /Users/你的用户名/ 文件夹下
打开访达,点击左侧的 应用程序 找到 idea,在 idea 图标上右键,点击 显示包内容
进入 Contents 目录,再进入 bin 目录,使用文本编辑器打开 idea.vmoptions 文件
在最后面添加 -javaagent:/Users/你的用户名/fineagent.jar,记得修改一下你的用户名。
运行 WebStorm, 选择 Activate WebStorm,再点击 Activation Code
复制下面的的激活码粘贴到激活窗口的输入框中,点击 Activate。可以用到 2099 年!
http://logaaaaa.oss-cn-beijing.aliyuncs.com/macfujian/fineagent.jar

5AYV1D1RE5-eyJsaWNlbnNlSWQiOiI1QVlWMUQxUkU1IiwibGljZW5zZWVOYW1lIjoiaHR0cHM6Ly93d3cuaml3ZWljaGVuZ3podS5jb20iLCJhc3NpZ25lZU5hbWUiOiIiLCJhc3NpZ25lZUVtYWlsIjoiIiwibGljZW5zZVJlc3RyaWN0aW9uIjoiIiwiY2hlY2tDb25jdXJyZW50VXNlIjpmYWxzZSwicHJvZHVjdHMiOlt7ImNvZGUiOiJJSSIsImZhbG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XhecM80OWthA38BQRYAJBCKz/dSkO2Kj1H2y+7KB5cIaOiJEyTESfTSgzQdot6laRBU8oxy9mmagI46M8zEEmplPybY4YJj4HOwZiBsMQEMxoTgMDLpuHX6uASoVhSj6koB55lOj4wEgsQBeAMWTAXmTl88ixE179J8aBUkBGpL8w/tZzl9BJXZNF15gPfkS58rw8cdPzXLS0Yym37A2/KKFhfHzJc5KhbaxqYzmkAfTMqPsIqCQ1lQUAqfiPn2gN2I1Z3/cQuEW27M55fXVr2DduQe5DWzYJs85L50CAwEAAaOBmTCBljAJBgNVHRMEAjAAMB0GA1UdDgQWBBQk2hEilvWFQcCTR+gxI0z0wIQC/zBIBgNVHSMEQTA/gBSjnrZIZ0ISNkG9beC5tKBSi5fxs6EcpBowGDEWMBQGA1UEAwwNSmV0UHJvZmlsZSBDQYIJANJssYOyg3nhMBMGA1UdJQQMMAoGCCsGAQUFBwMBMAsGA1UdDwQEAwIFoDANBgkqhkiG9w0BAQsFAAOCAQEAsCQBjO5wttco/Z5cj/o4GBrku8UtBBBVFq4xsBanshTHm4deVxcTvta4aScV0TPKcaLqGqWx8A9v8XXO8dBbCuyXvWZteZ/C2Covg1xXiM99lz7VxqpjVmLdKanZn5u0gQSiYJdcfF+TdbmEIeSOnN/kLXNq2hXdJQK2zk2J25UZqu5EibRtTbdOzw6ZcfwJ8uOntXfsmAhnNICP3Wf/4wR/mwB0Ka4S+JA3IbF5MUmUZ/fjUaFarnin70us+Vxf/sZUi7u67wilvwVV0NAqDpthHUV0NRc4q+yOr2Dt/uCHdy4XRXLJfAv/z9/xBwNZZALNz3EtQL6IeIWWJByl3g==

idea常用插件

  • ignore
  • Alibaba Java Coding Guidelines
  • CodeGlance Pro
  • Codota AI Autocomplete for Java and JavaScript
  • GitToolBox
  • Grep Console
  • Lombok
  • Maven Helper
  • MyBatisCodeHelperPro(需收费未破解)
  • MyBatis Log Free

常用软件

todesk

http://www.hellodesk.cn/download.html

mweb-pro

链接: https://pan.baidu.com/s/1ueUByoL9QzQvN2Gh6-rlAA 提取码: f36a 

clashx

链接: https://pan.baidu.com/s/1q9j-jYz2F2v6iYxJI8DqDQ 提取码: q9xu 

洛雪音乐

https://atgfwacnz-my.sharepoint.com/:f:/g/personal/gtfonedriver_365vip_eu_org/ElOGuqEMRDZEmJIsbV8m4qcBq3FuKqxTiuZEJSgJL2lZTA?e=tjZTe4

Termius

链接: https://pan.baidu.com/s/1j5ZD2urh-ZkvydNArXGYsA 提取码: 3xqn 

vm+centos

链接: https://pan.baidu.com/s/1ZLM6Mx6CTcw9C7CURspm8w 提取码: c8au 
2

评论区