随笔分类 -  linux

摘要:ALTER USER postgres ENCRYPTED PASSWORD 'postgres123'; 10、开放端口 firewall-cmd --query-port=5432/tcp firewall-cmd --add-port=5432/tcp firewall-cmd --add-p 阅读全文
posted @ 2023-05-15 14:12 binbinx
摘要:linux 命令行出现-bash-4.2$的解决办法 reference: https://blog.csdn.net/weixin_40106836/article/details/86495232https://blog.csdn.net/mjb115889/article/details/82 阅读全文
posted @ 2023-05-15 13:35 binbinx
摘要:CentOS7更换阿里yum源 CentOS7更换阿里yum源 1.备份原有yum源 2.下载阿里yum源 3.清理yum缓存,重建缓存 4.安装epel-release 5.查看yum源信息 官方镜像下载地址:https://www.centos.org/download/mirrors/阿里云L 阅读全文
posted @ 2023-05-15 13:23 binbinx
摘要:yum命令yum自定义安装路径 yum -c /etc/yum.conf --installroot=/opt/all_venv/ --releasever=/ install nginx -y 1 该命令简单解释如下:-c /etc/yum.conf 表示指定yum配置文件地址–installro 阅读全文
posted @ 2023-05-15 13:15 binbinx 阅读(218) 评论(0) 推荐(0)
摘要:Centos 添加PATH环境变量 浏览次数:1818 关键词 ( 环境变量 Centos PATH ) 添加PATH环境变量,第1种方法: [root@lx_web_s1 ~]# export PATH=/usr/local/webserver/mysql/bin:$PATH 再次查看: [roo 阅读全文
posted @ 2023-05-15 09:16 binbinx
摘要:Linux平台编译安装的快捷参考(Centos7.X平台/Pg14beta3为例): 说明:postgres官网源码编译安装操作步骤有一些小坑没更新过来,所以参考官网的安装步骤重新整理了一下,PG12,13部署均可以参考该文档。参考链接:下载页面/Download: 世界上功能最强大的开源数据库.. 阅读全文
posted @ 2023-05-13 22:27 binbinx
摘要:0001.CentOS7 虚拟机安装后,网络失败 connect network is unreachable 解决方法 1590 阅读 0 评论 2 点赞 connect network is unreachable 一般是网上设置问题,需要进行如下修改: 一、虚拟机修改网络配置: 1、一般测试虚 阅读全文
posted @ 2023-05-13 19:49 binbinx
摘要:MongoDB 功能详解之时间序列集合(Time Series Collections) 时间序列集合(Time Series Collections):MongoDB 5.0 版本中的新功能。 时间序列数据是一系列数据点,通过分析这些随时间变化的数据点而获得对数据的深刻理解。 时间序列数据通常由以 阅读全文
posted @ 2023-05-13 13:22 binbinx
摘要:作者:husky_1链接:https://www.jianshu.com/p/cba102845927来源:简书著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 mongoDB Shell (mongosh) 是一个功能齐全的 JavaScript 和 Node.js 14.x 阅读全文
posted @ 2023-04-27 14:01 binbinx
摘要:进入MongoDB 因为版本是6.0,所以需要在终端输入mongosh,该命令相当于6.0版本之前的mongo命令 root@Mongodb:~# mongoshCurrent Mongosh Log ID: 63f48e2e5d50ed0f2ed35d3cConnecting to: mongod 阅读全文
posted @ 2023-04-27 13:58 binbinx
摘要:一、MongoDB简介 MongoDB是一个基于分布式文件存储的数据库,采用C++语言编写,旨在为Web应用提供可扩展的高性能数据存储解决方案。MongoDB是一个介于关系数据库和非关系数据库之间的产品,是目前非关系数据库当中功能最丰富、最像关系数据库的数据库。 传统的关系数据库一般由数据库(dat 阅读全文
posted @ 2023-04-27 13:51 binbinx
摘要:一、修改密码: 切换至mongo的bin目录下,登录mongo use admin db.changeUserPassword('用户名','新密码'); db.auth('用户名','新密码'); 二、忘记密码,重置密码: 步骤如下: 1、找到mongodb的配置文件 通过 ps -ef|grep 阅读全文
posted @ 2023-04-27 13:49 binbinx
摘要:服务器的准备 我的服务器是在腾讯云租的,所以服务器的apt源都是默认配好的,没配好的自行网上查找apt源配置。 本文同样适用于Ubuntu 22,20。Ubuntu18亦可参考。 云服务器一般防火墙未开放端口访问,请自行配置,否则后续远程访问不了: mysql:3306 redis:6379 Mon 阅读全文
posted @ 2023-04-27 13:46 binbinx
摘要:sudo apt install python3-pip pip3 install pgadmin4 sudo ufw allow http sudo ufw allow https 在 Ubuntu 上安装 pgAdmin4 ​ 上面的操作已经配置好了postgresql软件,所以现在您可以开始尽 阅读全文
posted @ 2023-04-25 10:42 binbinx
摘要:z@zlinux:~$ sudo apt-cache search pgagentpgagent - job scheduling engine for PostgreSQLresource-agents-extra - Cluster Resource Agentsx2goserver-xsess 阅读全文
posted @ 2023-04-25 10:05 binbinx
摘要:ubuntu 22.04 国内镜像阿里云/163源/清华大学/中科大--转--已验证 GPG 错误 由于没有公钥,无法验证下列签名 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C sudo 阅读全文
posted @ 2023-04-25 09:28 binbinx
摘要:Ubuntu # Create the file repository configuration: sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/ 阅读全文
posted @ 2023-04-24 23:23 binbinx
摘要:Ubuntu:PostgreSql安装PostGis、TimeScaleDB插件 https://docs.timescale.com/self-hosted/latest/install/installation-linux/ Installing self-hosted TimescaleDB 阅读全文
posted @ 2023-04-24 19:48 binbinx
摘要:参考文章https://www.postgresql.org/download/linux/ubuntu/一、postgres数据库安装# Create the file repository configuration:1.sudo sh -c 'echo "deb http://apt.post 阅读全文
posted @ 2023-04-24 19:45 binbinx
摘要:修改/etc/init.d/redis_6379(stop下红框中内容,格式:$CLIEXEC -a "password" -p $REDISPORT shutdown) 阅读全文
posted @ 2023-04-23 23:39 binbinx