PostgreSQL
https://www.postgresql.org/ftp/binary/solaris/solaris11/i386/ <-------------
Installing and Configuring PostgreSQL on Shared Storage in a Non-Global HA Container <---------------
http://notallmicrosoft.blogspot.com/postgresql-on-solaris-11
https://popovnv.wordpress.com/postgresql-install-on-oracle-solaris/
https://www.php.net/manual/ru/install.unix.sun.php <--------------PHP
https://dev.mysql.com/doc/refman/solaris-installation.html <------------MySQL
![](https://www.google.com/images/icons/product/drive-32.png)
![](https://www.google.com/images/icons/product/drive-32.png)
![](https://www.google.com/images/icons/product/drive-32.png)
=============================================
$ ssh user@192.168.1.222
Password:
Last login: Mon Feb 17 05:07:29 2020 from 192.168.1.201
Oracle Corporation SunOS 5.11 11.4 Aug 2018
user@solaris:~$
user@solaris:~$ roles
zonemng,root
user@solaris:~$ su zonemng
Password:
zonemng@solaris:~$ zoneadm list -iv
ID NAME STATUS PATH BRAND IP
0 global running / solaris shared
- zone1 installed /export/home/zone1 solaris shared
- zone2 installed /export/home/zone2 solaris shared
zonemng@solaris:~$ zoneadm -z zone1 boot
zone 'zone1': warning: net0: no matching subnet found in netmasks(5): 192.168.1.101; using default of 255.255.255.0.
zonemng@solaris:~$ zoneadm list -iv
ID NAME STATUS PATH BRAND IP
0 global running / solaris shared
1 zone2 installed /export/home/zone2 solaris shared
- zone1 running /export/home/zone1 solaris shared
root@zone1:~# cat /etc/passwd
............................завести пользователя
# groupadd -g 90 postgres
# useradd -u 90 -S files -s /usr/bin/bash -d / -g postgres postgres
root@zone1:~# grep postgres /etc/passwd /etc/group
/etc/passwd:postgres:x:90:90::/:/usr/bin/bash
/etc/group:postgres::90:
root@zone1:~#
# mkdir /usr/local
# chown postgres:postgres /usr/local
# cd /usr
# ls -al
...........
drwxr-xr-x 3 postgres postgres 5 Feb 17 16:20 local
# wget https://ftp.postgresql.org/pub/binar...(https://ftp.postgresql.org/pub/binary/v11.0/solaris/solaris11/.i386-32.tar.bz2)
# cp postgresql-11.0-S11.i386-32.tar.bz2 /usr/local
root@zone1:~# su - postgres
Oracle Corporation SunOS 5.11 11.4 Aug 2018
$ pwd
/
$ cd /usr/local
$ pwd
/usr/local
$ ls
postgresql-11.0-S11.i386-32.tar.bz2
$ bunzip2 < postgresql-11.0-S11.i386-32.tar.bz2 | tar xpf -
$ ls
postgres postgresql-11.0-S11.i386-32.tar.bz2
$ /usr/local/postgres/11-pgdg/bin/initdb -D /usr/local/postgres/data
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale "C".
The default database encoding has accordingly been set to "SQL_ASCII".
The default text search configuration will be set to "english".
Data page checksums are disabled.
creating directory /usr/local/postgres/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok
WARNING: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.
Success. You can now start the database server using:
/usr/local/postgres/11-pgdg/bin/pg_ctl -D /usr/local/postgres/data -l logfile start
$ /usr/local/postgres/11-pgdg/bin/pg_ctl -D /usr/local/postgres/data -l logfile start
waiting for server to start.... done
server started
$ /usr/local/postgres/11-pgdg/bin/pg_ctl -D /usr/local/postgres/data -l logfile stop
waiting for server to shut down.... done
server stopped
$
$ pwd (user postgres)
/usr/local
$ /usr/local/postgres/11-pgdg/bin/pg_ctl -D /usr/local/postgres/data -l logfile start
waiting for server to start.... done
server started
$