摘要:
1、连接数据库, 默认的用户和数据库是postgrespsql -h host -p port -U user -d dbname 2、执行sql文件 psql -h ${PGHOST} -p ${PGPORT} -U ${PGUSER} -d safe_browser -f xxxx.sql \i
阅读全文
posted @ 2022-07-13 10:13
sky_cheng
阅读(5258)
推荐(0)
摘要:
一、下载秘钥 [root@bogon src]# curl -sSL https://rvm.io/mpapis.asc | gpg2 --import - gpg: 密钥 D39DC0E3:“Michal Papis (RVM signing) <mpapis@gmail.com>”未改变 gpg
阅读全文
posted @ 2022-05-25 12:49
sky_cheng
阅读(1058)
推荐(0)
摘要:
一、windows下获取硬盘序列号 二、linux下获取硬盘序列号 [root@localhost ~]# lsblk --nodeps -no serial /dev/sda 644a84200a457f00279821a004a02321
阅读全文
posted @ 2022-04-25 15:00
sky_cheng
阅读(639)
推荐(0)
摘要:
[root@localhost 22-4-12-54_cert]# cat /sys/class/dmi/id/product_name PowerEdge R320 [root@localhost 22-4-12-54_cert]# cat /sys/class/dmi/id/product_se
阅读全文
posted @ 2022-01-20 17:08
sky_cheng
阅读(293)
推荐(0)
摘要:
一、在可以访问外网的机器上安装createrepo yum install createrepo -y 二、安装yum-utils工具包 [root@localhost home]# yum install yum-utils -y 三、创建/home/yum-custom/packages目录用于
阅读全文
posted @ 2022-01-20 15:35
sky_cheng
阅读(790)
推荐(0)
摘要:
一、之前对外暴露接口地址为http://172.28.5.4 客户要求升级为https,由于是IP地址访问,所以生成自签名证书并设置nginx 二、home目录下新建new_cert目录用于存放证书以及相关文件 [root@localhost home]# mkdir new_cert 三、使用op
阅读全文
posted @ 2022-01-11 18:02
sky_cheng
阅读(4740)
推荐(0)
摘要:
一、链接 redis [hladmin@localhost redis-5.0.8]$ ./src/redis-cli -p 6377 --raw - 127.0.0.1:6377> auth XXXXXX OK 127.0.0.1:6377> 二、链接集群 [hladmin@localhost c
阅读全文
posted @ 2022-01-04 10:03
sky_cheng
阅读(76)
推荐(0)
摘要:
一、普通用户使用sudo报错 hladmin 不在 sudoers 文件中。此事将被报告。 二、修改/etc/sudoers文件 [hladmin@localhost hl-sms-core]$ su root 密码: [root@localhost hl-sms-core]# vim /etc/s
阅读全文
posted @ 2021-12-29 09:20
sky_cheng
阅读(672)
推荐(0)
摘要:
一、查看当前系统环境设置 [root@localhost shenhua-setup]# locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE=
阅读全文
posted @ 2021-12-28 10:31
sky_cheng
阅读(218)
推荐(0)
摘要:
[hladmin@localhost mysql-5.7.36]$ /apps/mysql-5.7.36/bin/mysqld --initialize --user=hladmin mysqld: [ERROR] Found option without preceding group in co
阅读全文
posted @ 2021-12-27 17:41
sky_cheng
阅读(3204)
推荐(0)