From 33a2d56f3501168c6d2d61508c09adc4c3baf0d0 Mon Sep 17 00:00:00 2001 From: xiuqiaowu Date: Mon, 26 Dec 2022 14:11:24 +0800 Subject: [PATCH] Update README.md --- README.md | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/README.md b/README.md index 848ab2099..ce72a0078 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,64 @@ dsms-storage是DSMS (Distributed Storage Management System)的数据存储 ### 安装和使用 +##### 适配系统信息 + +``` +$ cat /etc/os-release +NAME="Anolis OS" +VERSION="8.6" +ID="anolis" +ID_LIKE="rhel fedora centos" +VERSION_ID="8.6" +PLATFORM_ID="platform:an8" +PRETTY_NAME="Anolis OS 8.6" +ANSI_COLOR="0;31" +HOME_URL="https://openanolis.cn/" +``` + +##### 1.添加epel源 + +``` +$ sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm + +$ sudo yum clean all + +$ sudo yum makecache +``` + +##### 2.安装软件 + +``` +$ sudo yum install cups-client libuuid-devel mailx ncurses python3-defusedxml python3-isodate python3-pkgconfig python3-saml python3-xmlsec snappy spax sphinx snappy-devel fsprogs-devel ncurses-compat-libs + +$ wget https://vault.centos.org/centos/8/AppStream/x86_64/os/Packages/redhat-lsb-submod-security-4.1-47.el8.x86_64.rpm http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/redhat-lsb-core-4.1-47.el8.x86_64.rpm http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/xmlstarlet-1.6.1-20.el8.x86_64.rpm + +$ sudo rpm -ivh redhat-lsb-submod-security-4.1-47.el8.x86_64.rpm redhat-lsb-core-4.1-47.el8.x86_64.rpm xmlstarlet-1.6.1-20.el8.x86_64.rpm +``` + +##### 3.部署依赖环境 + +``` +$ ./install-deps.sh +``` + +##### 4.创建bulid + +``` +$ sudo cp -r dsms-storage/cmake/modules/* /usr/share/cmake/Modules/ +$ sudo cp -r dsms-storage/src/seastar/cmake/* /usr/share/cmake/Modules/ + +$ ./do_cmake.sh +``` + +##### 5.make + +``` +$ cd bulid + +$ make -j4 +``` + ### 参与贡献 你可以[issue](https://gitee.com/anolis/dsms-storage/issues/new),或者提交一个 Pull Request。 -- Gitee