安装openGuass

我们要先准备安装一台Centos7.x的linux系统,大概是在7.6左右(注意如果是CentOS 7.9可能会导致系统不支持的问题 ),我是使用阿里云的云服务器

[root@openGauss ~]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2020-07-10 00:04:36 CST; 1 day 20h ago
     Docs: man:firewalld(1)
Main PID: 8889 (firewalld)
    Tasks: 2
   CGroup: /system.slice/firewalld.service
           └─8889 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
Jul 10 00:04:34 openGauss systemd[1]: Starting firewalld - dynamic firewall daemon...
Jul 10 00:04:36 openGauss systemd[1]: Started firewalld - dynamic firewall daemon.
[root@openGauss ~]# systemctl stop firewalld  
[root@openGauss ~]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Sat 2020-07-11 20:19:00 CST; 3s ago
     Docs: man:firewalld(1)
  Process: 8889 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=0/SUCCESS)
Main PID: 8889 (code=exited, status=0/SUCCESS)
Jul 10 00:04:34 openGauss systemd[1]: Starting firewalld - dynamic firewall daemon...
Jul 10 00:04:36 openGauss systemd[1]: Started firewalld - dynamic firewall daemon.
Jul 11 20:18:58 openGauss systemd[1]: Stopping firewalld - dynamic firewall daemon...
Jul 11 20:19:00 openGauss systemd[1]: Stopped firewalld - dynamic firewall daemon.
[root@openGauss ~]# systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
###禁用swap
[root@openGauss ~]# swapoff -a
[root@openGauss ~]# swapoff -av
swapoff /dev/mapper/centos_opengauss-swap
###禁用 SELINUX
[root@openGauss ~]# sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
[root@openGauss ~]# cat /etc/selinux/config | grep SELINUX
# SELINUX= can take one of these three values:
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
SELINUXTYPE=targeted

然后检查yum源    cd /etc/yum.repos.d/

[root@openGauss ~]# cd /etc/yum.repos.d/
[root@openGauss yum.repos.d]# ll

首先,下载阿里巴巴的 YUM 源配置文件:

sudo wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

更新缓存:

sudo yum makecache

然后用yum安装以下软件:

[root@openGauss yum.repos.d]# yum repolist
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: ftp.sjtu.edu.cn
* extras: mirrors.bfsu.edu.cn
* updates: ftp.sjtu.edu.cn
repo id                                                       repo name                                                      status
!base/7/x86_64                                                CentOS-7 - Base                                                10,070
!extras/7/x86_64                                              CentOS-7 - Extras                                                 412
!updates/7/x86_64                                             CentOS-7 - Updates                                                890
repolist: 11,372
[root@openGauss yum.repos.d]#
[root@openGauss yum.repos.d]#
[root@openGauss yum.repos.d]# yum list
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.bfsu.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Installed Packages
GConf2.x86_64                                                         3.2.6-8.el7                                         @anaconda
GeoIP.x86_64                                                          1.5.0-13.el7                                        @anaconda
ModemManager.x86_64                                                   1.6.10-1.el7                                        @anaconda
ModemManager-glib.x86_64                                              1.6.10-1.el7                                        @anaconda
NetworkManager.x86_64                                                 1:1.12.0-6.el7                                      @anaconda
.................(省略包信息)..............
 
 
[root@openGauss yum.repos.d]# yum install python3.6*
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.bfsu.edu.cn
* extras: mirrors.bfsu.edu.cn
* updates: mirrors.bfsu.edu.cn
base                                                                                                        | 3.6 kB  00:00:00     
extras                                                                                                      | 2.9 kB  00:00:00     
updates                                                                                                     | 2.9 kB  00:00:00     
Resolving Dependencies
--> Running transaction check
---> Package python3-pip.noarch 0:9.0.3-7.el7_7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python3-pip-9.0.3-7.el7_7.noarch
--> Processing Dependency: /usr/bin/python3 for package: python3-pip-9.0.3-7.el7_7.noarch
---> Package python3-setuptools.noarch 0:39.2.0-10.el7 will be installed
---> Package python3-wheel.noarch 0:0.31.1-5.el7_7 will be installed
--> Running transaction check
---> Package python3.x86_64 0:3.6.8-13.el7 will be installed
--> Processing Dependency: python3-libs(x86-64) = 3.6.8-13.el7 for package: python3-3.6.8-13.el7.x86_64
--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python3-3.6.8-13.el7.x86_64
--> Running transaction check
---> Package python3-libs.x86_64 0:3.6.8-13.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================================================
Package                              Arch                     Version                             Repository                 Size
================================
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值