UbuntuでPostgreSQLがactice (exited)なのはそれでいいのかな?
$ systemctl status postgresql
● postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor pr>
Active: active (exited) since Tue 2022-05-31 08:35:27 HST; 2h 41min ago
Process: 1263 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 1263 (code=exited, status=0/SUCCESS)
CPU: 1ms
Warning: some journal files were not opened due to insufficient permissions.
なんだけど認証までは進んでるっぽい
$ psql
psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5433" failed: FATAL: role "zunda" does not exist
$ sudo -u postgres psql
postgres=# create role zunda with createdb login;
したらエラーが変わったよ。サーバは走ってるんだねえ。
$ psql
psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5433" failed: FATAL: database "zunda" does not exist
$ bundle exec rake db:migrate
$ bundle exec rails s
走ったー。やったね!!