当前位置:网站首页>单节点部署 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
下期更加精彩
边栏推荐
猜你喜欢
随机推荐
零基础小白想往游戏建模方向发展,3D游戏建模好学嘛?
Prometheus监控容器、pod、邮件告警
一文看懂常见域名后缀的含义
交换机access口,hybrid口,trunk口的区别
超全!9种PCB表面处理工艺大对比
go test执行多个文件夹下相同目录的用例
【EA Price strategy OC1】以实时价格为依据的EA,首月翻仓!】
在OracleLinux8.6的Zabbix6.0中监控Oracle11gR2
Command errored out with exit status 1类似问题解决方案
2. What is the difference between Exception and Error?
PCB板上的字母代表哪些元器件?一文看全!
JUC并发编程深入浅出!
【入职第一篇知识总结- Prometheus】
PCB制造常用的13种测试方法,你了解几种?
gotests自动生成测试用例
ue4学习日记3(设置操控角色,地形)
C # program with administrator rights to open by default
数据库OracleRAC节点宕机处理流程
计算机网络高频面试考点
AQS、CAS、Synchronized小理解









