首页 > 其他分享 >瀚高V9的快速安装部署与注意事项

瀚高V9的快速安装部署与注意事项

时间:2024-03-08 16:14:43浏览次数:22  
标签:opt set log 部署 system 注意事项 highgo V9 alter

瀚高V9的快速安装部署与注意事项


介质使用

上传文件
mkdir -p /highgo /opt/highgo
useradd highogo
chown highgo /opt/highgo /highgo  -R 
chmod 700  /highgo -R

su - highgo
进行执行./bin 安装
选择路径 /opt/highgo

输入密码 Testxxxxxxxx?!

兼容性选择 postgresql
定制化安装能够避免时候很多修改配置节的工作. 

服务启动:
root 用户
echo "export PGDATA=/opt/highgo/data" >/etc/profile.d/highgo.sh
su - highgo
pg_ctl start -m f

设置开机启动
mkdir -p /deploy
echo 'su - highgo -c  "/opt/highgo/bin/pg_ctl stop -m f" ' >/deploy/stophg
echo 'su - highgo -c  "/opt/highgo/bin/pg_ctl start -m f" ' >/deploy/starthg
echo 'su - highgo -c  "/opt/highgo/bin/pg_ctl restart -m f" ' >/deploy/restarthg
chmod 777 /deploy/* -R

设置密码:
alter user highgo with password 'Testxxxxxxxx?!';
创建用户时:
因为默认不使用?! 所以用户密码为 Test@xxxxxxxx
用户为 myapp2309highgo

部分参数修改:
psql highgo highgo 
alter system set max_connections = 2000; 
alter system set checkpoint_timeout = '30min';
alter system set checkpoint_completion_target = 0.8;
alter system set log_destination = 'csvlog';
alter system set logging_collector = on;
alter system set log_directory = 'hgdb_log';
alter system set log_filename = 'highgodb-%a.log';
alter system set log_rotation_age = '1d'; 
alter system set log_rotation_size = 0;  
alter system set log_truncate_on_rotation = on; 
alter system set log_statement = 'ddl';
alter system set shared_buffers = '8GB'; 

其他处理

su -highgo
psql highgo highgo
set search_path="$user", public,myapp2309highgo;
\q

psql myapp2309highgo highgo
create extension if not EXISTS "uuid-ossp";  
DROP CAST  IF EXISTS  (varchar as integer );
create cast(varchar as integer ) with inout as implicit;
update pg_cast set castcontext = 'i' where castsource = 'integer'::regtype and casttarget = 'boolean'::regtype;
\q

psql myapp2309highgo myapp2309highgo 
CREATE OR REPLACE FUNCTION sys_guid()
  RETURNS uuid AS
$BODY$   
declare cur uuid;
BEGIN
 select uuid_generate_v4() into cur;
 return cur;
END;   
$BODY$
LANGUAGE plpgsql;
\q

psql myapp2309highgo highgo 
DROP CAST  IF EXISTS  (varchar as integer );
create cast(varchar as integer) with inout as implicit;
\q

标签:opt,set,log,部署,system,注意事项,highgo,V9,alter
From: https://www.cnblogs.com/jinanxiaolaohu/p/18061203

相关文章

  • docker 部署 django + mysql + vue 项目
    ​项目目录结构,在Vue和Django项目根目录下创建Dockerfile文件,在父级目录下创建docker-compose.yml文件Project#父级目录├─client#vue3项目目录│├─public│└─src│├─*files│├─*files│├─Dockerfile└─server#Django项......
  • nginx部署vue项目
    第一步:打包第二步:地址映射http{server{listen8080;#设置端口号8080server_namelocalhost;#主机域名location/{......
  • Linux环境下Docker部署.Net8应用
    ......
  • FFU、WIM、ESD、VHD和VHDX都是与Windows操作系统部署、备份和虚拟化相关的文件格式。
    FFU(FullFlashUpdate)文件格式是微软开发的,用于在Windows设备上进行固件更新和完整系统部署的一种映像文件格式。FFU文件包含了设备的完整磁盘映像,包括所有分区、文件系统和数据。这种格式允许精确复制存储设备的内容,提供了一种高效且可靠的方式来恢复、更新或部署设备。下面是对F......
  • 如何将应用一键部署至多个环境?丨Walrus教程
    在Walrus平台上,运维团队在资源定义(ResourceDefinition)中声明提供的资源类型,通过设置匹配规则,将不同的资源部署模板应用到不同类型的环境、项目等。与此同时,研发人员无需关注底层具体实现方式,通过创建Resource对象声明需要使用的资源类型及基本信息,就可以灵活地在各种环境中自......
  • 统一身份认证系统 OpenLDAP 完整部署
    0)LDAP介绍LDAP是什么?在那些地方用会用到LDAP?LDAP英文名称:LightweightDirectoryAccessProtocol轻型目录访问协议。常用在单点登录,用户可以通过一个用户和密码登录多个服务,方便管理。目前我们使用的一下工具,Jenkins,GitLab,Jumpserver,Grafana,Confluence,NextCloud等等,很多开......
  • 将java项目打包部署在linux系统上(配置成systemd)
    我这里以ruoyi前后端分离的springboot项目为例打包部署1.前置条件1.0一些一些小问题#如果是阿里云或者腾讯云上面去开通安全组#默认防火墙是关闭的可以将防火墙打开sudosystemctlenablefirewalldsudosystemctlstartfirewalld#开放端口sudofirewall-cmd--zo......
  • 基于arduino IDE 部署ESP32 ESP8266开发环境
    本文涉及技术:arduinoIDE环境,windows10系统软件,开发环境配置,单片机新手入门;关于arduino程序学习与相关教程,可以前往Arduino中文社区Arduino教程汇总贴arduino1.8.9arduinoIDE是一个很棒的集成开发环境,自带有开发版环境管理,函数库管理,一键编译、下载;串口调试的功能,代码格......
  • 为什么将Jenkins部署在k8s上
    传统Jenkins的Master-Slave方案的缺陷Master节点发生单点故障时,整个流程都不可用了每个Slave节点的配置环境不一样,来完成不同语言的编译打包等操作,但是这些差异化的配置导致管理起来非常不方便,维护起来也是比较费劲资源分配不均衡,有的Slave节点要运行的job出现排队等待,而有......
  • MongoDB 7.0集群部署
    环境描述:OS:openEuler22.03LTS-SP3mongoDB:7.0.6mongodb-database-tools:100.9.0mongosh:2.1.5GCC:12.3.1Python:3.9.9Clang:12.0.1服务器规划:主机名IP地址MongosServer组件端口ConfigServer组件端口ShardServer组件端口mongo-01192.168.83.102701727018主节......