当前位置:网站首页>单节点部署 gpmall 商城系统(一)
单节点部署 gpmall 商城系统(一)
2022-08-03 05:28:00 【念舒_C.ying】
单节点部署 gpmall 商城系统(一)
一、修改主机名:
[[email protected] ~]# hostnamectl set-hostname mall
二、修改/etc/hosts配置文件:
[[email protected] ~]# vi /etc/hosts
192.168.100.10 mall
三、配置本地yum源:
将gpmall-repo上传到服务器的/opt目录下,并配置本地local.repo文件
mkdir -p /opt/centos
mount /dev/cdrom /opt/centos
[[email protected] ~]# vi /etc/yum.repos.d/local.repo
[centos]
name=centos
baseurl=file:///opt/centos
gpgcheck=0
enabled=1
[mall]
name=mall
baseurl=file:///opt/gpmall-repo
gpgcheck=0
enabled=1
四、安装基础服务:
1、安装java环境:
[[email protected] ~]# yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel
[[email protected] ~]# java -version
2、安装Redis缓存服务:
[[email protected] ~]# yum install redis -y
3、安装Elasticsearch服务:
[[email protected] ~]# yum install elasticsearch -y
4、安装Nginx服务:
[[email protected] ~]# yum install nginx -y
5、安装Mariadb服务:
[[email protected] ~]# yum install mariadb mariadb-server -y
6、安装zookeeper服务:
将zookeeper-3.4.14.tar.gz上传至云主机的/opt内,解压压缩包命令如下:
[[email protected] ~]# tar -zxvf zookeeper-3.4.14.tar.gz
进入到zookeeper-3.4.14/conf目录下,将zoo_sample.cfg文件重命名为zoo.cfg,命令如下:
[[email protected] conf]# mv zoo_sample.cfg zoo.cfg
进入到zookeeper-3.4.14/bin目录下,启动ZooKeeper服务,命令如下:
[[email protected] bin]# ./zkServer.sh start
查看ZooKeeper状态,命令如下:
[[email protected] bin]# ./zkServer.sh status
7、安装kafka服务:
将提供的kafka_2.11-1.1.1.tgz包上传到云主机的/opt目录下,解压该压缩包,命令如下:
tar -zxvf kafka_2.11-1.1.1.tgz
进入到kafka_2.11-1.1.1/bin目录下,启动Kafka服务,命令如下:
[[email protected] bin]# ./kafka-server-start.sh -daemon ../config/server.properties
使用jps命令查看Kafka是否成功启动,命令如下:
[[email protected] bin]# jps
6039 Kafka
1722 QuorumPeerMain
6126 Jps
下期更加精彩
边栏推荐
猜你喜欢
随机推荐
contos安装php-ffmpeg和tp5.1使用插件
AQS、CAS、Synchronized小理解
使用Contab调用Shell脚本执行expdp自动备份Oracle
Oracle常用命令-基本命令
Monitoring Oracle11gR2 in Zabbix6.0 of OracleLinux8.6
VB.net如何使用List类型
交换机access口,hybrid口,trunk口的区别
PHP Composer常用命令积累
C#使用Oracle.ManagedDataAccess连接C#数据库
次世代建模到底需要哪些美术基础
【Personal summary】Key points of MES system development/management
【干货分享】PCB 板变形原因!不看不知道
TFS(Azure DevOps)禁止多人同时签出
MySQL master-slave replication
2. What is the difference between Exception and Error?
国内首款PCB资料分析软件,华秋DFM使用介绍
Docker安装Mysql
C#程序默认以管理员权限打开
SSL证书过期后怎么办?
Migration of BOA Server









