Update Maca3.0
parent
044f9448d6
commit
b50d12c92c
20
Maca3.0.md
20
Maca3.0.md
@ -17,7 +17,7 @@
|
|||||||
cat <<EOF> /etc/yum.repos.d/maca-sdk-rpm.repo
|
cat <<EOF> /etc/yum.repos.d/maca-sdk-rpm.repo
|
||||||
[maca-sdk]
|
[maca-sdk]
|
||||||
name=Maca Sdk Yum Repository
|
name=Maca Sdk Yum Repository
|
||||||
baseurl=https://mirror.metax-tech.com/r/maca-sdk-rpm/
|
baseurl=https://repos.metax-tech.com/r/maca-sdk-rpm/
|
||||||
enabled=1
|
enabled=1
|
||||||
gpgcheck=0
|
gpgcheck=0
|
||||||
EOF
|
EOF
|
||||||
@ -28,8 +28,8 @@
|
|||||||
- **适配所有 Ubuntu 系统**
|
- **适配所有 Ubuntu 系统**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -fsSL https://mirror.metax-tech.com/public.gpg.key | apt-key add -
|
curl -fsSL https://repos.metax-tech.com/public.gpg.key | apt-key add -
|
||||||
echo "deb [arch=$(dpkg --print-architecture)] https://mirror.metax-tech.com/r/maca-sdk-deb/ stable main" | tee /etc/apt/sources.list.d/maca-sdk-deb.list
|
echo "deb [arch=$(dpkg --print-architecture)] https://repos.metax-tech.com/r/maca-sdk-deb/ stable main" | tee /etc/apt/sources.list.d/maca-sdk-deb.list
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
|
|
||||||
@ -37,12 +37,12 @@
|
|||||||
|
|
||||||
1. **一次性安装**
|
1. **一次性安装**
|
||||||
```bash
|
```bash
|
||||||
pip install <PKG Name> -i https://mirror.metax-tech.com/r/maca-pypi/simple --trusted-host https://mirror.metax-tech.com
|
pip install <PKG Name> -i https://repos.metax-tech.com/r/maca-pypi/simple --trusted-host https://repos.metax-tech.com
|
||||||
|
|
||||||
1. **永久配置**
|
1. **永久配置**
|
||||||
```bash
|
```bash
|
||||||
pip config set global.index-url https://mirror.metax-tech.com/r/maca-pypi/simple
|
pip config set global.index-url https://repos.metax-tech.com/r/maca-pypi/simple
|
||||||
pip config set global.trusted-host https://mirror.metax-tech.com
|
pip config set global.trusted-host https://repos.metax-tech.com
|
||||||
|
|
||||||
|
|
||||||
### Metax Driver
|
### Metax Driver
|
||||||
@ -53,7 +53,7 @@
|
|||||||
cat <<EOF> /etc/yum.repos.d/metax-driver-centos7.repo
|
cat <<EOF> /etc/yum.repos.d/metax-driver-centos7.repo
|
||||||
[metax-centos7]
|
[metax-centos7]
|
||||||
name=Maca Driver Yum Repository
|
name=Maca Driver Yum Repository
|
||||||
baseurl=https://mirror.metax-tech.com/r/metax-driver-centos7
|
baseurl=https://repos.metax-tech.com/r/metax-driver-centos7
|
||||||
enabled=1
|
enabled=1
|
||||||
gpgcheck=0
|
gpgcheck=0
|
||||||
EOF
|
EOF
|
||||||
@ -66,7 +66,7 @@
|
|||||||
cat <<EOF> /etc/yum.repos.d/metax-driver-centos.repo
|
cat <<EOF> /etc/yum.repos.d/metax-driver-centos.repo
|
||||||
[metax-centos]
|
[metax-centos]
|
||||||
name=Maca Driver Yum Repository
|
name=Maca Driver Yum Repository
|
||||||
baseurl=https://mirror.metax-tech.com/r/metax-driver-centos
|
baseurl=https://repos.metax-tech.com/r/metax-driver-centos
|
||||||
enabled=1
|
enabled=1
|
||||||
gpgcheck=0
|
gpgcheck=0
|
||||||
EOF
|
EOF
|
||||||
@ -76,6 +76,6 @@
|
|||||||
- **适配所有 Ubuntu 系统**
|
- **适配所有 Ubuntu 系统**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -fsSL https://mirror.metax-tech.com/public.gpg.key | apt-key add -
|
curl -fsSL https://repos.metax-tech.com/public.gpg.key | apt-key add -
|
||||||
echo "deb [arch=$(dpkg --print-architecture)] https://mirror.metax-tech.com/metax-driver-ubuntu/ stable main" | tee /etc/apt/sources.list.d/metax-driver-ubuntu.list
|
echo "deb [arch=$(dpkg --print-architecture)] https://repos.metax-tech.com/metax-driver-ubuntu/ stable main" | tee /etc/apt/sources.list.d/metax-driver-ubuntu.list
|
||||||
apt-get update
|
apt-get update
|
Loading…
Reference in New Issue
Block a user