Различия
Здесь показаны различия между двумя версиями данной страницы.
Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
abills:docs:modules:cams:nginx [2016/12/12 15:53] anton |
abills:docs:modules:cams:nginx [2018/03/07 17:20] (текущий) andriy |
||
---|---|---|---|
Строка 7: | Строка 7: | ||
apt-get -y install libpcre3 libpcre3-dev libssl-dev | apt-get -y install libpcre3 libpcre3-dev libssl-dev | ||
cd /usr/src/ | cd /usr/src/ | ||
- | wget http://nginx.org/download/nginx-1.9.0.tar.gz | + | wget http://nginx.org/download/nginx-1.13.9.tar.gz |
- | tar -xzvf nginx-1.9.0.tar.gz | + | tar -xzvf nginx-1.13.9.tar.gz |
- | cd nginx-1.9.0 | + | cd nginx-1.13.9 |
./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 | ./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 | make | ||
Строка 76: | Строка 76: | ||
Перезапускаем ''nginx'' | Перезапускаем ''nginx'' | ||
/etc/init.d/nginx restart | /etc/init.d/nginx restart | ||
+ | |||
+ | На Debian Jessie, у меня скрипт init.d не поставился, запускаем ''nginx'' с командной строки | ||
+ | nginx | ||
+ | echo "nginx" >> /etc/rc.local | ||
+ | | ||
+ | Для перезапуска, можно использовать сигнал | ||
+ | nginx -s reload | ||
+ | \\ | ||
+ | \\ | ||
+ | Заполняем **crossdomain.xml** | ||
+ | <code> | ||
+ | mkdir /var/www/ipcam | ||
+ | echo "<?xml version="1.0" ?>" > /var/www/ipcam/crossdomain.xml | ||
+ | echo "<cross-domain-policy>" >> /var/www/ipcam/crossdomain.xml | ||
+ | echo "<allow-access-from domain='*' />" >> /var/www/ipcam/crossdomain.xml | ||
+ | echo "</cross-domain-policy>" >> /var/www/ipcam/crossdomain.xml | ||
+ | </code> |