postgresql 9.2.1 для 1С на CentOS 6.3 x86_64 minimal
yum update -y
reboot
chkconfig iptables off
service iptables stop
chkconfig ip6tables off
service ip6tables stop
nano /etc/selinux/config SELINUX=disabled
cd ~ && mkdir psql && cd psql && wget http://v8.1c.ru/overview/postgresql_patches/9-2-1/postgresql92-9.2.1-1.1C.src.rpm
useradd user
rpm -ivh postgresql92-9.2.1-1.1C.src.rpm
ln -s /usr/lib64/libicuuc.so /usr/local/lib/libicuuc.so.46 && ln -s /usr/lib64/libicui18n.so /usr/local/lib/libicui18n.so.46 && ln -s /usr/lib64/libicudata.so /usr/local/lib/libicudata.so.46
nano /usr/lib/rpm/macros
Ctrl + w %_default_patch_fuzz
меняем с 0 на 2
cd ~ && time rpmbuild -ba --define 'runselftest 0' /root/rpmbuild/SPECS/postgresql-9.2.spec
rpm -ivh ~/rpmbuild/RPMS/x86_64/*.rpm
su postgres
/usr/pgsql-9.2/bin/initdb -D /var/lib/pgsql/9.2/data/ --locale=ru_RU.UTF-8
exit
service postgresql-9.2 restart && chkconfig postgresql-9.2 on
/usr/pgsql-9.2/bin/psql -U postgres
postgres=# alter user postgres with password '111111111';
ALTER ROLE
postgres=# \q
Комментариев нет:
Отправить комментарий