摘要: 查看redis的releases版本 首先安装redis之前,可以点击这里,查看最新的releases版本。 最上面的版本太久了,继续往下翻看看最新版本是多少。 下载redis的稳定版本 根据上面的页面,获取下载链接,进行下载。 wget http://download.redis.io/relea 阅读全文
posted @ 2020-04-09 17:36 疯子110 阅读(532) 评论(0) 推荐(0) 编辑
摘要: 安装完OpenJDK,还要配置/etc/profile文件。 路径因为jdk版本有点小不同。 1 echo $JAVA_HOME //这个命令是在已经配置了/etc/profile 文件的前提下查询的,如果该文件$JAVA_HOME配置错误,输出结果也是错误的。 which java //查询jav 阅读全文
posted @ 2020-04-09 17:27 疯子110 阅读(3256) 评论(0) 推荐(0) 编辑
摘要: 编辑服务文件 vi /etc/init.d/activemq 文件内容如下 #!/bin/bash # chkconfig: 2345 10 90 # description: activemq .... prog=tomcat JAVA_HOME=/usr/local/java/jdk1.7.0_ 阅读全文
posted @ 2020-04-09 17:25 疯子110 阅读(633) 评论(0) 推荐(0) 编辑
摘要: 在安装redis的过程中,启动service redisd start时报错/var/run/redis_6379.pid exists, process is already running or crashed解决方案:执行命令: rm -rf /var/run/redis_6379.pid 然 阅读全文
posted @ 2020-04-09 17:23 疯子110 阅读(963) 评论(0) 推荐(0) 编辑
摘要: 修改TCP 61616端口 打开您的mq安装目录 进入conf文件夹 打开activemq.xml的配置文件 查找transportConnectors 找到name="openwire" uri="tcp://0. 请看下图 如下图所示 在:后面写上您所需的端口号 就可以修改成您想要的端口号了 修 阅读全文
posted @ 2020-04-09 14:52 疯子110 阅读(1449) 评论(0) 推荐(0) 编辑
摘要: 在Linux命令行下面下载文件,通过wget是比较普遍简单的,比如在CentOS7 里面也一样。我们先来看下自己的CentOS7 系统有没有安装wget: [root@test redis]# rpm -qa|grep wget1如果安装了会提示当前安装的版本: wget-1.14-15.el7_4 阅读全文
posted @ 2020-04-09 14:14 疯子110 阅读(2273) 评论(0) 推荐(0) 编辑
摘要: 编写开机自动启动服务脚本: # cat >> /usr/lib/systemd/system/postgresql.service >> EOF 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 阅读全文
posted @ 2020-04-09 10:42 疯子110 阅读(792) 评论(0) 推荐(0) 编辑
摘要: pg_ctl stop$ pg_ctl --help Usage: pg_ctl stop [-W] [-t SECS] [-D DATADIR] [-s] [-m SHUTDOWN-MODE] Common options: -D, --pgdata=DATADIR location of the 阅读全文
posted @ 2020-04-09 10:40 疯子110 阅读(913) 评论(0) 推荐(0) 编辑
摘要: 前言 版本: PostgreSQL 9.5 linux:CentOS7 下载在postgresql的官方即可找到源码文件目录,地址如下:https://www.postgresql.org/ftp/source/,在下载列表中根据需求选择版本,如下图: 进入子目录后,可以看到文件列表: 如上图,可以 阅读全文
posted @ 2020-04-09 10:06 疯子110 阅读(1497) 评论(1) 推荐(0) 编辑
摘要: 有两种方法: useradd 用户名 echo 用户名:密码 | chpasswd echo 密码|passwd --stdin 用户名 阅读全文
posted @ 2020-04-09 09:46 疯子110 阅读(7202) 评论(0) 推荐(0) 编辑
摘要: 一、Postgresql使用的端口是: 5432/tcp 二、centos7防火墙默认的zone是:public 三、 firewall-cmd –zone=public –list-ports //查看已开放的端口 firewall-cmd –zone=public –add-port=5432/ 阅读全文
posted @ 2020-04-09 09:45 疯子110 阅读(1022) 评论(0) 推荐(0) 编辑
摘要: 今天修改pg的端口号port改成5435后重启完数据库的时候直接psql进库的时候进不去[postgres@node2 data]$ psqlpsql: could not connect to server: No such file or directory Is the server runn 阅读全文
posted @ 2020-04-09 09:44 疯子110 阅读(1093) 评论(0) 推荐(0) 编辑
摘要: 环境变量是和Shell紧密相关的,用户登录系统后就启动了一个Shell。对于Linux来说一般是bash,但也可以重新设定或切换到其它的 Shell。对于UNIX,可能是CShelll。环境变量是通过Shell命令来设置的,设置好的环境变量又可以被所有当前用户所运行的程序所使用。对于bash这个Sh 阅读全文
posted @ 2020-04-09 09:43 疯子110 阅读(3031) 评论(0) 推荐(0) 编辑