1C — различия между версиями

Материал из m6a
Перейти к: навигация, поиск
(→‎Используемые материалы)
Строка 1: Строка 1:
−
        apt-get update
+
==Установка==
−
    2 apt-get upgrade
+
sudo -i
−
    3  ifconfig
+
apt-get update
−
    4  reboot
+
  apt-get upgrade
−
    5 apt-get update
+
  apt-get install zabbix-agent
−
    6 apt-get upgrade
+
  vi /etc/zabbix/zabbix_agentd.conf
−
    7 ls
+
  service zabbix-agent restart
−
    8 cd /home/u1c/
+
  cd /home/u1c/
−
    9  ls
+
  echo "kernel.shmmax=1073741824" >>/etc/sysctl.conf
−
  10  cd ls -l
+
  sysctl -p
−
  11  ls -l
+
  locale-gen en_US ru_RU ru_RU.UTF-8
−
  12  rm -rf homeu1c
+
  export LANG="ru_RU.UTF-8"
−
  13 echo "kernel.shmmax=1073741824" >>/etc/sysctl.conf
+
  update-locale LANG=ru_RU.UTF-8
−
  14 sysctl -p
+
  locale -a
−
  15 locale-gen en_US ru_RU ru_RU.UTF-8
+
  vi /etc/default/locale
−
  16 export LANG="ru_RU.UTF-8"
+
  reboot
−
  17 apt-get install libssl0.9.8 libossp-uuid16 libxslt1.1 libicu52 libt1-5 t1utils imagemagick ttf-mscorefonts-installer unixodbc texlive-base libgfs-1.3-2
+
  apt-get install libssl0.9.8 libossp-uuid16 libxslt1.1 libicu52 libt1-5 t1utils imagemagick ttf-mscorefonts-installer unixodbc texlive-base libgfs-1.3-2
−
  18 dpkg -i libpq5_9.2.4-1.1C_amd64.deb
+
  dpkg -i libpq5_9.2.4-1.1C_amd64.deb
−
  19  apt-get install zabbix-agent
+
  mkdir postgresql
−
  20 vi /etc/zabbix/zabbix_agentd.conf
+
  mv postgresql*.deb postgresql
−
  21 service zabbix-agent restart
+
  cd postgresql/
−
  22  ls -l
+
  dpkg -i libpq5_9.1.9-1.1C_amd64.deb  
−
  23  ls
+
  dpkg -i postgresql-client-common_140~lucid_all.deb  
−
  24  ls -l
+
  dpkg -i postgresql-client-9.1_9.1.9-1.1C_amd64.deb  
−
  25  tar -xvjf postgresql-9.4.2-1.1C_amd64_*
+
  dpkg -i postgresql-common_140~lucid_all.deb  
−
  26  tar -xvjf postgresql-9.4.2-1.1C_amd64_deb.tar.bz2
+
  dpkg -i postgresql-9.1_9.1.9-1.1C_amd64.deb  
−
  27  s -l
+
  dpkg -i postgresql-contrib-9.1_9.1.9-1.1C_amd64.deb
−
  28  ls -l
+
  sudo -u postgres /usr/lib/postgresql/9.4/bin/initdb -D /var/lib/postgresql/9.4/main --locale=ru_RU.UTF-8
−
  29  tar xvjf postgresql-9.4.2-1.1C_amd64_deb.tar.bz2
+
  psql -U postgres -c "alter user postgres with password 'qweszxc77';"
−
  30  apt-get install mc
+
  service postgresql status
−
  31  ls -l
+
−
  32  tar -xvf postgresql-9.4.2-1.1C_amd64_deb.tar.bz2
+
−
  33  ls -l
+
−
  34  mkdir postgresql
+
−
  35  mv postgresql*.deb postgresql
+
−
  36  ls -l
+
−
  37  cp postgresql-9.4.2-1.1C_amd64_addon.deb.tar.bz2 postgresql
+
−
  38  cd postgresql/
+
−
  39  ls -l
+
−
  40  tar -xvf postgresql-9.4.2-1.1C_amd64_addon.deb.tar.bz2
+
−
  41  dpkg -i libpq-dev_9.4.2-1.1C_amd64.deb
+
−
  42  ls -l
+
−
  43  rm postgresql-9.4.2-1.1C_amd64_addon.deb.tar.bz2
+
−
  44  ls -l
+
−
  45  dpkg -i libpq-dev_9.4.2-1.1C_amd64.deb
+
−
  46  dpkg -i libecpg6_9.4.2-1.1C_amd64.deb
+
−
  47 apt-get install libssl0.9.8 libossp-uuid16 libxslt1.1 libicu52 libt1-5 t1utils imagemagick ttf-mscorefonts-installer unixodbc texlive-base libgfs-1.3-2
+
−
  48  apt-get -f install
+
−
  49  mc
+
−
  50 dpkg -i libpq5_9.4.2-1.1C_amd64.deb  
+
−
  51 dpkg -i postgresql-client-common_154.1.1C_all.deb
+
−
  52 dpkg -i postgresql-client-9.4_9.4.2-1.1C_amd64.deb  
+
−
  53  dpkg -i postgresql-common_154.1.1C_all.deb
+
−
  54 dpkg -i postgresql-contrib-9.4_9.4.2-1.1C_amd64.deb
+
−
  55  apt-get install libssl0.9.8 libossp-uuid16 libxslt1.1 libicu52 libt1-5 t1utils imagemagick ttf-mscorefonts-installer unixodbc texlive-base libgfs-1.3-2
+
−
  56  apt-get install ssl-cert
+
−
  57  apt-get install libicu48
+
−
  58  dpkg -i libpq5_9.4.2-1.1C_amd64.deb  
+
−
  59 dpkg -i postgresql-client-common_154.1.1C_all.deb  
+
−
  60 dpkg -i postgresql-client-9.4_9.4.2-1.1C_amd64.deb  
+
−
  61 dpkg -i postgresql-common_154.1.1C_all.deb  
+
−
  62 ls -l
+
−
  63  apt-get install ssl-cert
+
−
  64  apt-get -f install
+
−
  65  reboot
+
−
  66  history
+
−
  67  su postgres
+
−
  68  rm -rf /mnt/1с/db/*
+
−
  69  ls /mnt/1с/db/
+
−
  70  su postgres
+
−
  71  history
+
−
  72  vi /etc/postgresql/9.4/main/postgresql.conf
+
−
  73  history
+
−
  74  su postgres
+
−
  75  history
+
−
  76  cd ..
+
−
  77  ls
+
−
  78  cd postgresql
+
−
  79  wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu48*.deb
+
−
  80  wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu48_4.8.1.1-12ubuntu2_amd64.deb
+
−
  81  wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu48_4.8.1.1-3_amd64.deb
+
−
  82 dpkg - i libicu48*.deb
+
−
  83  dpkg - i libicu48_4.8.1.1-3_amd64.deb
+
−
  84  dpkg -i libicu48_4.8.1.1-3_amd64.deb
+
−
 
+
−
/usr/lib/postgresql/9.4/bin/initdb -D /mnt/1c/db --locale=ru_RU.UTF-8
+
−
    2  psql -U postgres -c "alter user postgres with password 'qweszxc77';"
+
−
    3  cd /mnt/1с/db/
+
−
    4  ls
+
−
    5  /usr/lib/postgresql/9.4/bin/initdb -D /mnt/1с/db/ --locale=ru_RU.UTF-8
+
−
    6  /home/u1c/postgresql$ psql -U postgres -c "alter user postgres with password 'qweszxc77';"
+
−
    7  psql -U postgres -c "alter user postgres with password 'qweszxc77';"
+
−
    8  vi /mnt/1с/db/pg_hba.conf
+
−
    9 service postgresql restart
+
−
  10  netstat -atn|grep 5432
+
−
  11  ln -s /usr/lib/x86_64-linux-gnu/libMagickWand.so.5 /usr/lib/x86_64-linux-gnu/libMagickWand.so
+
−
  14 /usr/lib/postgresql/9.4/bin/initdb -D /mnt/1с/db/ --locale=ru_RU.UTF-8
+
−
  16  /usr/lib/postgresql/9.4/bin/initdb -D /mnt/1с/db/ --locale=ru_RU.UTF-8
+
−
  18  psql -U postgres -c "alter user postgres with password 'qweszxc77';"
+
−
  21  service postgresql stop
+
−
  22  service postgresql status
+
−
  23  rm -rf /mnt/1с/db/*
+
−
  24  /usr/lib/postgresql/9.4/bin/initdb -D /mnt/1с/db/ --locale=ru_RU.UTF-8
+
−
  25  service postgresql start
+
−
  27  psql -U postgres -c "alter user postgres with password 'qweszxc77';"
+
−
  28  service postgresql stop
+
−
  29  rm -rf /mnt/1с/db/*
+
−
  30  service postgresql start
+
−
  31  /usr/lib/postgresql/9.4/bin/initdb -D /mnt/1с/db/ --locale=ru_RU.UTF-8
+
−
  32  psql -U postgres -c "alter user postgres with password 'qweszxc77';"
+
−
  36  service postgresql restart
+
−
  37  service postgresql stop
+
−
  38  rm -rf /mnt/1с/db/*
+
−
  39  /usr/lib/postgresql/9.4/bin/initdb -D /mnt/1с/db/ --locale=ru_RU.UTF-8
+
−
  40  service postgresql start
+
−
  41 psql -U postgres -c "alter user postgres with password 'qweszxc77';"
+
−
  42 service postgresql status
+
  
 
==Используемые материалы==
 
==Используемые материалы==

Версия 20:12, 31 октября 2015

Установка

sudo -i 
apt-get update
apt-get upgrade
apt-get install zabbix-agent 
vi /etc/zabbix/zabbix_agentd.conf
service zabbix-agent restart
cd /home/u1c/
echo "kernel.shmmax=1073741824" >>/etc/sysctl.conf
sysctl -p
locale-gen en_US ru_RU ru_RU.UTF-8
export LANG="ru_RU.UTF-8"
update-locale LANG=ru_RU.UTF-8
locale -a
vi /etc/default/locale
reboot
apt-get install libssl0.9.8 libossp-uuid16 libxslt1.1 libicu52 libt1-5 t1utils imagemagick ttf-mscorefonts-installer unixodbc texlive-base libgfs-1.3-2
dpkg -i libpq5_9.2.4-1.1C_amd64.deb
mkdir postgresql
mv postgresql*.deb postgresql
cd postgresql/
dpkg -i libpq5_9.1.9-1.1C_amd64.deb 
dpkg -i postgresql-client-common_140~lucid_all.deb 
dpkg -i postgresql-client-9.1_9.1.9-1.1C_amd64.deb 
dpkg -i postgresql-common_140~lucid_all.deb 
dpkg -i postgresql-9.1_9.1.9-1.1C_amd64.deb 
dpkg -i postgresql-contrib-9.1_9.1.9-1.1C_amd64.deb 
sudo -u postgres /usr/lib/postgresql/9.4/bin/initdb -D /var/lib/postgresql/9.4/main --locale=ru_RU.UTF-8
psql -U postgres -c "alter user postgres with password 'qweszxc77';"
service postgresql status

Используемые материалы