随笔分类 -  ubuntu

摘要:报错: Missing privilege separation directory: /run/sshd 解决: # sudo mkdir /run/sshd 阅读全文
posted @ 2024-01-19 13:46 疯子110 阅读(698) 评论(0) 推荐(0)
摘要:一、安装部署postgresql-timescaledbapt install gnupg postgresql-common apt-transport-https lsb-release wget 二、运行postgresql存储库设置脚本 /usr/share/postgresql-commo 阅读全文
posted @ 2024-01-13 14:35 疯子110 阅读(336) 评论(0) 推荐(0)
摘要:sudo vim /etc/ssh/sshd_config HostKeyAlgorithms +ssh-rsaPubkeyAcceptedKeyTypes +ssh-rsasudo systemctl restart sshd Ubuntu 22.04下使用SSH 登录提示no hostke——— 阅读全文
posted @ 2023-12-19 17:37 疯子110 阅读(1940) 评论(0) 推荐(0)
摘要:1. 修改用户postgres的密码PostgreSQL数据库默认创建管理员账号:postgres;修改其密码,仅需一下三步: 1、首先,登录PostgreSQL sudo -u postgres psql postgres -p 54322、然后,修改账号postgres的密码 ALTER USE 阅读全文
posted @ 2023-12-11 17:40 疯子110 阅读(1307) 评论(0) 推荐(1)
摘要:打开终端,以管理员身份运行以下命令以编辑网络配置文件: sudo nano /etc/netplan/00-installer-config.yaml 在打开的文件中,找到类似于以下内容的部分: network: ethernets: enp0s3: dhcp4: true version: 2 将 阅读全文
posted @ 2023-12-11 17:38 疯子110 阅读(807) 评论(0) 推荐(0)
摘要:Ubuntu 使用 timesyncd 开启NTP时间同步,并替换为ntpd步进式的逐渐校正时间。 环境为 Ubuntu 22.04 LTS 时区在 Ubuntu 20.04 及之后的版本中,内置了时间同步功能,并且默认使用systemd的timesyncd服务来激活。timesyncd 替代了老旧 阅读全文
posted @ 2023-12-11 17:33 疯子110 阅读(2076) 评论(0) 推荐(0)
摘要:在Ubuntu 20.04系统中,您可以使用UFW(Uncomplicated Firewall)来管理防火墙规则并放行指定端口。下面是放行指定端口的教程: 步骤 1:检查UFW是否安装 首先,确保系统上已经安装了UFW。在终端中运行以下命令检查UFW的状态: sudo ufw status如果UF 阅读全文
posted @ 2023-12-11 17:22 疯子110 阅读(487) 评论(0) 推荐(0)
摘要:PostgreSQL 名称来源It was originally named POSTGRES, referring to its origins as a successor to the Ingres database developed at the University of Califor 阅读全文
posted @ 2023-12-11 17:19 疯子110 阅读(344) 评论(0) 推荐(0)