ISPManager 5 - Debian 7 - установка nginx с модулями with-http flv module и with-http mp4 module
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
ISPManager 5 - Debian 7 - установка nginx с модулями with-http flv module и with-http mp4 module
Тестировалось на Debian GNU/Linux 7.8
# lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 7.8 (wheezy) Release: 7.8 Codename: wheezy
Добавляем официальный репозиторий nginx:
# vi /etc/apt/sources.list deb http://nginx.org/packages/mainline/debian/ wheezy nginx deb-src http://nginx.org/packages/mainline/debian/ wheezy nginx
# wget -c http://nginx.org/keys/nginx_signing.key # apt-key add nginx_signing.key
Обновляем кэш:
# apt-get update
Устанавливаем и активируем nginx через ISPManager 5 --> Settings --> Features --> Клацаем на "Web-server (WWW)" --> отмечаем галку "nginx" и нажимаем Apply Changes.
логи установки мониторим через файл:
# tail -f /usr/local/mgr5/var/pkg.log *** Sun Feb 7 14:43:19 CET 2016 *** installing ispmanager-pkg-nginx Reading package lists... Building dependency tree... Reading state information... The following packages were automatically installed and are no longer required: fail2ban gamin init-system-helpers libgamin0 python-central python-gamin sqlite3 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: nginx The following NEW packages will be installed: ispmanager-pkg-nginx nginx 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 1,053 kB of archives. After this operation, 2,332 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! nginx ispmanager-pkg-nginx Authentication warning overridden. Get:1 http://nginx.org/packages/mainline/debian/ wheezy/nginx nginx amd64 1.9.10-1~wheezy [1,050 kB] Get:2 http://download.ispsystem.com/repo/debian/ 5.50-wheezy/main ispmanager-pkg-nginx all 5.50.0-wheezy2 [3,012 B] Fetched 1,053 kB in 0s (6,763 kB/s) Selecting previously unselected package nginx. ( Reading database ... 49433 files and directories currently installed.) Unpacking nginx (from .../nginx_1.9.10-1~wheezy_amd64.deb) ... ----------------------------------------------------------------------
Thanks for using nginx!
Please find the official documentation for nginx here: * http://nginx.org/en/docs/
Commercial subscriptions for nginx are available on: * http://nginx.com/products/
---------------------------------------------------------------------- Setting up nginx (1.9.10-1~wheezy) ... /var/lib/dpkg/info/nginx.postinst: 27: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or kill -l [exitstatus] nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] still could not bind() invoke-rc.d: initscript nginx, action "start" failed. Selecting previously unselected package ispmanager-pkg-nginx. (Reading database ... 49462 files and directories currently installed.) Unpacking ispmanager-pkg-nginx (from .../ispmanager-pkg-nginx_5.50.0-wheezy2_all.deb) ... Setting up ispmanager-pkg-nginx (5.50.0-wheezy2) ...
Проверяем результат чтобы были модули для стриминга flv и mp4 - --with-http_flv_module --with-http_mp4_module
# nginx -V nginx version: nginx/1.9.10 built by gcc 4.7.2 (Debian 4.7.2-5) built with OpenSSL 1.0.1e 11 Feb 2013 TLS SNI support enabled configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log- path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --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_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-threads --with-stream --with-stream_ssl_module --with-http_slice_module --with-mail --with-mail_ssl_module --with-file-aio --with-http_v2_module --with-cc-opt='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-z,relro -Wl,--as-needed' --with-ipv6
Links: