Различия

Здесь показаны различия между двумя версиями данной страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
abills:docs:other:ipcam:ru [2016/04/30 18:35]
kodr [Установка monit]
abills:docs:other:ipcam:ru [2016/08/01 17:52] (текущий)
anton [Установка yasm x264 ffmpeg fdk-aac]
Строка 4: Строка 4:
  
 ====Установка nginx==== ====Установка nginx====
-  ​ +Нужно собрать nginx с модулем ''​flv''​  
-  apt-get install build-essential +<​code>​ 
-  apt-get install libpcre3 libpcre3-dev +apt-get install build-essential 
-  cd /usr/src/ +apt-get install libpcre3 libpcre3-dev libssl-dev 
-  wget http://​nginx.org/​download/​nginx-1.9.0.tar.gz +cd /usr/src/ 
-  tar -xzvf nginx-1.9.0.tar.gz +wget http://​nginx.org/​download/​nginx-1.9.0.tar.gz 
-  cd nginx-1.9.0 +tar -xzvf nginx-1.9.0.tar.gz 
-  ./configure --prefix=/​usr --conf-path=/​etc/​nginx/​nginx.conf --pid-path=/​var/​run/​nginx.pid --error-log-path=/​var/​log/​nginx/​error.log --http-log-path=/​var/​log/​nginx/​access.log --with-http_ssl_module --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_gzip_static_module --with-http_stub_status_module +cd nginx-1.9.0 
-  make  +./configure --prefix=/​usr --conf-path=/​etc/​nginx/​nginx.conf --pid-path=/​var/​run/​nginx.pid --error-log-path=/​var/​log/​nginx/​error.log --http-log-path=/​var/​log/​nginx/​access.log --with-http_ssl_module --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_gzip_static_module --with-http_stub_status_module 
-  make install+make  
 +make install 
 +</​code>​
  
-  nano /​etc/​nginx/​sites-enabled/​ipcam+  ​nano /​etc/​nginx/​sites-enabled/​ipcam
  
   server {   server {
Строка 45: Строка 47:
   }   }
  
 +  /​etc/​init.d/​nginx restart
 ====Установка yasm x264 ffmpeg fdk-aac==== ====Установка yasm x264 ffmpeg fdk-aac====
  
Строка 56: Строка 59:
 ===Yasm=== ===Yasm===
   ​   ​
-  cd /usr/srs/+  cd /usr/srс/
   wget http://​www.tortall.net/​projects/​yasm/​releases/​yasm-1.2.0.tar.gz   wget http://​www.tortall.net/​projects/​yasm/​releases/​yasm-1.2.0.tar.gz
   tar xzvf yasm-1.2.0.tar.gz   tar xzvf yasm-1.2.0.tar.gz
Строка 106: Строка 109:
 В файл /​etc/​monit/​monitrc добавить В файл /​etc/​monit/​monitrc добавить
  
-   set httpd port 8888 and +  ​set httpd port 8888 and 
-   ​use address 192.168.1.11 ​ # Адрес сервера +  use address 192.168.1.11 ​ # Адрес сервера 
-   ​allow 0.0.0.0/​0.0.0.0 ​     # разрешенные подсети +  allow 0.0.0.0/​0.0.0.0 ​     # разрешенные подсети 
-   ​allow admin:​admin ​      # Логин и Пароль для доступа+  allow admin:​admin ​      # Логин и Пароль для доступа
  
 +  /​etc/​init.d/​monit restart