Updated Home (markdown)
parent
ceb8f55a69
commit
c1fe6d699b
37
Home.md
37
Home.md
|
|
@ -2,7 +2,7 @@
|
||||||
## 使用的系统软件
|
## 使用的系统软件
|
||||||
| 名称 | 说明 |
|
| 名称 | 说明 |
|
||||||
|:--|-|
|
|:--|-|
|
||||||
| centos|7.x|
|
|Linux发行版|CentOS和Ubuntu之类的Linux可使用安装包|
|
||||||
|libfastcommon|FastDFS分离出的公用函数库|
|
|libfastcommon|FastDFS分离出的公用函数库|
|
||||||
|libserverframe|FastDFS分离出的网络框架|
|
|libserverframe|FastDFS分离出的网络框架|
|
||||||
|FastDFS|FastDFS本体|
|
|FastDFS|FastDFS本体|
|
||||||
|
|
@ -12,34 +12,57 @@
|
||||||
可以采用yum安装和源码编译两种方式之一。
|
可以采用yum安装和源码编译两种方式之一。
|
||||||
|
|
||||||
## yum安装
|
## yum安装
|
||||||
针对CentOS 7 和 CentOS 8及同类Linux发行版。
|
针对CentOS 7 和 CentOS 8及同类Linux发行版,支持 x86_64(intel CPU) 和 aarch64(arm CPU)两种架构。
|
||||||
先安装FastOS.repo yum源,然后就可以安装FastDFS相关软件包了。
|
先安装FastOS.repo yum源,然后就可以安装FastDFS相关软件包了。
|
||||||
|
|
||||||
CentOS 7、RHEL 7、Oracle Linux 7、Alibaba Cloud Linux 2、Anolis 7、AlmaLinux 7、Amazon Linux 2、Fedora 27及以下版本:
|
CentOS 7、RHEL 7、Oracle Linux 7、Alibaba Cloud Linux 2、Anolis 7、AlmaLinux 7、Amazon Linux 2、Fedora 27及以下版本:
|
||||||
```shell
|
```shell
|
||||||
rpm -ivh http://www.fastken.com/yumrepo/el7/noarch/FastOSrepo-1.0.0-1.el7.centos.noarch.rpm
|
sudo rpm -ivh http://www.fastken.com/yumrepo/el7/noarch/FastOSrepo-1.0.0-1.el7.centos.noarch.rpm
|
||||||
```
|
```
|
||||||
|
|
||||||
CentOS 8、Rocky 8、RHEL 8、Oracle Linux 8、Alibaba Cloud Linux 3、Anolis 8、AlmaLinux 8、Amazon Linux 3、Fedora 28及以上版本:
|
CentOS 8、Rocky 8、RHEL 8、Oracle Linux 8、Alibaba Cloud Linux 3、Anolis 8、AlmaLinux 8、Amazon Linux 3、Fedora 28及以上版本:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
rpm -ivh http://www.fastken.com/yumrepo/el8/noarch/FastOSrepo-1.0.0-1.el8.noarch.rpm
|
sudo rpm -ivh http://www.fastken.com/yumrepo/el8/noarch/FastOSrepo-1.0.0-1.el8.noarch.rpm
|
||||||
```
|
```
|
||||||
|
|
||||||
安装 FastDFS软件包:
|
安装 FastDFS软件包:
|
||||||
```shell
|
```shell
|
||||||
yum install fastdfs-server fastdfs-tool fastdfs-config -y
|
sudo yum install fastdfs-server fastdfs-tool fastdfs-config -y
|
||||||
|
```
|
||||||
|
|
||||||
|
## apt安装
|
||||||
|
针对Debian 10及以上版本,Ubuntu 18.04及以上版本 和 Deepin 20及以上版本,支持 amd64 和 arm64 两种架构。
|
||||||
|
|
||||||
|
配置 apt 存储库和签名密钥,以使系统的包管理器启用自动更新:
|
||||||
|
```shell
|
||||||
|
sudo apt-get install curl gpg
|
||||||
|
curl http://www.fastken.com/aptrepo/packages.fastos.pub | gpg --dearmor > fastos-archive-keyring.gpg
|
||||||
|
sudo install -D -o root -g root -m 644 fastos-archive-keyring.gpg /usr/share/keyrings/fastos-archive-keyring.gpg
|
||||||
|
sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/fastos-archive-keyring.gpg] http://www.fastken.com/aptrepo/fastos/ fastos main" > /etc/apt/sources.list.d/fastos.list'
|
||||||
|
rm -f fastos-archive-keyring.gpg
|
||||||
|
```
|
||||||
|
|
||||||
|
如果需要安装调试包,执行:
|
||||||
|
```shell
|
||||||
|
sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/fastos-archive-keyring.gpg] http://www.fastken.com/aptrepo/fastos-debug/ fastos-debug main" > /etc/apt/sources.list.d/fastos-debug.list'
|
||||||
|
```
|
||||||
|
|
||||||
|
安装 FastDFS软件包:
|
||||||
|
```shell
|
||||||
|
sudo apt install fastdfs-server fastdfs-tool fastdfs-config -y
|
||||||
```
|
```
|
||||||
|
|
||||||
## 编译环境
|
## 编译环境
|
||||||
CentOS
|
CentOS
|
||||||
```shell
|
```shell
|
||||||
yum install git gcc gcc-c++ make automake autoconf libtool pcre pcre-devel zlib zlib-devel openssl-devel wget vim -y
|
sudo yum install git gcc gcc-c++ make automake autoconf libtool pcre pcre-devel zlib zlib-devel openssl-devel wget vim -y
|
||||||
```
|
```
|
||||||
Debian
|
Debian
|
||||||
```
|
```
|
||||||
apt-get -y install git gcc g++ make automake autoconf libtool pcre2-utils libpcre2-dev zlib1g zlib1g-dev openssl libssh-dev wget vim
|
sudo apt install git gcc g++ make automake autoconf libtool pcre2-utils libpcre2-dev zlib1g zlib1g-dev openssl libssh-dev wget vim -y
|
||||||
```
|
```
|
||||||
|
|
||||||
## 磁盘目录
|
## 磁盘目录
|
||||||
|说明|位置|
|
|说明|位置|
|
||||||
|-|-|
|
|-|-|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue