In this example, the IP address of my jail is 192.168.1.203 To make the number more meaningful to me, IĬhose the convention of setting the UID to 70 + the last block of the jail's To pgsql:*:70203:70:PostgreSQL pseudo-user:/usr/local/pgsql:/bin/shĪlthough UIDs are traditionally 65535 or lower, there's no technical reasonįor that, at least on FreeBSD. For example:įrom pgsql:*:70:70:PostgreSQL pseudo-user:/usr/local/pgsql:/bin/sh Run vipw -d /usr/jails/myjail/etc/ and change Give them the same pages of shared memory. If you have multiple Postgres instances from the same UID, the kernel will Running under the same one kernel as the host. Second, jailsĭo not duplicate the kernel, so all processes from every jail are Realize two things: First, the kernel manages shared memory. Host (even of they're in different jails), you must change the pgsql UID If you plan on having multiple instances of Postgres running on the same Make it persistent by adding this line to /etc/nf _allowed=1Īdd this line to /etc/rc.conf jail_sysvipc_allow="YES"Įnter your jail and install Postgres. Postgres needs System V IPC available in jails. Here's how to set it up: Basic Configuration I keep a separate Postgres instance inĮach webserver jail to keep things partitioned off. Postgres is my favorite database, and I run multiple sites backed by it on one
0 Comments
Leave a Reply. |