PostgreSQL can be installed on Debian 12 either from Debian 12’s default repository or the PostgreSQL Repository. Use the “sudo apt install postgresql postgresql-contrib” command to install Postgres from Debian 12’s default repository or execute the “sudo apt install postgresql -y” command to...
Step 1b: Set the host name To make sure that the host name of the machine is reported correctly, change the/etc/hostnamefile to contain only the host name of the machine. hostname Step 1c: Assign a loopback address to the host name To make sure that the DNS ...
SLES 12: sudo su -l postgres -c "initdb --pgdata=/var/lib/pgsql/data --encoding=UTF-8" Ubuntu: sudo service postgresql start Enable MD5 authentication. Editpg_hba.conf, which is usually found in/var/lib/pgsql/dataor/etc/postgresql/<version>/main. Add the following line: ...
First we switch user to postgres. This postgres user is created by installation. The reason we switch user is that psql requires to be run by user postgres only. 1 2 3 $ sudo su –postgres $ psql Now we can use psql. We can see our terminal is showing “postgres=#” as prompt. ...
sudo -u postgres /usr/local/pgsql/12/bin/psql -U postgres -c "CREATE DATABASE parse;" &>/dev/null sudo -u postgres /usr/local/pgsql/12/bin/psql -U postgres -f ${install_dir}/dgiot_pg_writer/parse_4.0.sql parse &>/dev/null ...
debian12/x86_64/cuda-keyring_1.1-1_all.deb dpkg -i cuda-keyring_1.1-1_all.deb add-apt-repository contrib apt-get update apt-get -y install cudnn## Specified by NVIDIA, but does not seem to install anythingapt-get -y install cudnn-cuda-12#CUDA Toolkit partapt install -y cuda-...
apisix_image="${apisix_image:-apache/apisix:3.4.0-debian}" apisix_dashboard_image="${apisix_dashboard_image:-apache/apisix-dashboard:3.0.1-alpine}" etcd_image="${etcd_image:-quay.io/coreos/etcd:v3.5.9}" wait4x_image="${wait4x_image:-atkrad/wait4x:2.12}" ...
首先查看操作系统版本,操作系统采用的是centos(非debian等操作系统),其他操作系统命令会不一样,包括配置文件以及默认安装路径等,所以初步了解操作系统很必要 安装之前需要检查一下机器上是否有mysql,同时要对软件本身要所有了解,包括该软件依赖的相关包或系统版本过低都可能造成安装当中的问题. 比如:你安装k8s 二进制版本...
$ sudo -u postgres psql psql (15.2 (Ubuntu 15.2-1.pgdg22.04+1)) Type 'help' for help. postgres=# CREATE USER dev PASSWORD 'strongone' CREATEDB; CREATE ROLE postgres=# qNow we can specify our newly created user dev and connect to PostgreSQL using password authentication.Please...
createuser--createdb--usernamepostgres--no-createrole--no-superuser--pwpromptodoo_14 psql ALTER USER odoo_14 WITH SUPERUSER; \qexit 在postgres配置文件中增加创建的odoo_14用户: sudo nano /etc/postgresql/12/main/pg_hba.conflocalall postgres peerlocalall odoo_14 md5 ...