Change default port
change the `port` in `/etc/postgresql/14/main/postgresql.conf`
Change data directory location
To avoid storage problem I followed this tutorial.
# /etc/postgresql/14/main/postgresql.conf
# data_directory = '/var/lib/postgresql/14/main' # use data in another directory
data_directory = '/mnt/0d08b147-6cb2-4978-b2a0-b78f2786f72d/data/postgresql/14/main'