版权声明:版权来自翻版 https://blog.csdn.net/weixin_44455125/article/details/90054514
[root@LIU application]# yum install -y net-tools wget unzip gcc gcc-c++ perl-devel openssl-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.cloud.aliyuncs.com
* extras: mirrors.cloud.aliyuncs.com
* updates: mirrors.cloud.aliyuncs.com
* webtatic: uk.repo.webtatic.com
base | 3.6 kB 00:00
epel | 4.7 kB 00:00
extras | 3.4 kB 00:00
nginx-stable | 2.9 kB 00:00
updates | 3.4 kB 00:00
webtatic | 3.6 kB 00:00
(1/2): epel/x86_64/updateinfo | 995 kB 00:00
(2/2): epel/x86_64/primary_db | 6.7 MB 00:00
Package net-tools-2.0-0.24.20131004git.el7.x86_64 already installed and latest version
Package wget-1.14-18.el7.x86_64 already installed and latest version
Package unzip-6.0-19.el7.x86_64 already installed and latest version
Package gcc-4.8.5-36.el7_6.2.x86_64 already installed and latest version
Package gcc-c++-4.8.5-36.el7_6.2.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package openssl-devel.x86_64 1:1.0.2k-16.el7_6.1 will be installed
--> Processing Dependency: openssl-libs(x86-64) = 1:1.0.2k-16.el7_6.1 for package: 1:openssl-devel-1.0.2k-16.el7_6.1.x86_64
--> Processing Dependency: zlib-devel(x86-64) for package: 1:openssl-devel-1.0.2k-16.el7_6.1.x86_64
--> Processing Dependency: krb5-devel(x86-64) for package: 1:openssl-devel-1.0.2k-16.el7_6.1.x86_64
---> Package perl-devel.x86_64 4:5.16.3-294.el7_6 will be installed
--> Processing Dependency: systemtap-sdt-devel for package: 4:perl-devel-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(ExtUtils::ParseXS) for package: 4:perl-devel-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(ExtUtils::MakeMaker) for package: 4:perl-devel-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(ExtUtils::Installed) for package: 4:perl-devel-5.16.3-294.el7_6.x86_64
--> Processing Dependency: libdb-devel for package: 4:perl-devel-5.16.3-294.el7_6.x86_64
--> Processing Dependency: gdbm-devel for package: 4:perl-devel-5.16.3-294.el7_6.x86_64
--> Running transaction check
---> Package gdbm-devel.x86_64 0:1.10-8.el7 will be installed
---> Package krb5-devel.x86_64 0:1.15.1-37.el7_6 will be installed
--> Processing Dependency: libkadm5(x86-64) = 1.15.1-37.el7_6 for package: krb5-devel-1.15.1-37.el7_6.x86_64
--> Processing Dependency: libverto-devel for package: krb5-devel-1.15.1-37.el7_6.x86_64
--> Processing Dependency: libselinux-devel for package: krb5-devel-1.15.1-37.el7_6.x86_64
--> Processing Dependency: libcom_err-devel for package: krb5-devel-1.15.1-37.el7_6.x86_64
--> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.15.1-37.el7_6.x86_64
---> Package libdb-devel.x86_64 0:5.3.21-24.el7 will be installed
---> Package openssl-libs.x86_64 1:1.0.2k-16.el7 will be updated
--> Processing Dependency: openssl-libs(x86-64) = 1:1.0.2k-16.el7 for package: 1:openssl-1.0.2k-16.el7.x86_64
---> Package openssl-libs.x86_64 1:1.0.2k-16.el7_6.1 will be an update
---> Package perl-ExtUtils-Install.noarch 0:1.58-294.el7_6 will be installed
---> Package perl-ExtUtils-MakeMaker.noarch 0:6.68-3.el7 will be installed
--> Processing Dependency: perl(ExtUtils::Manifest) for package: perl-ExtUtils-MakeMaker-6.68-3.el7.noarch
---> Package perl-ExtUtils-ParseXS.noarch 1:3.18-3.el7 will be installed
---> Package systemtap-sdt-devel.x86_64 0:3.3-3.el7 will be installed
--> Processing Dependency: pyparsing for package: systemtap-sdt-devel-3.3-3.el7.x86_64
---> Package zlib-devel.x86_64 0:1.2.7-18.el7 will be installed
--> Running transaction check
---> Package keyutils-libs-devel.x86_64 0:1.5.8-3.el7 will be installed
---> Package libcom_err-devel.x86_64 0:1.42.9-13.el7 will be installed
---> Package libkadm5.x86_64 0:1.15.1-37.el7_6 will be installed
---> Package libselinux-devel.x86_64 0:2.5-14.1.el7 will be installed
--> Processing Dependency: libsepol-devel(x86-64) >= 2.5-10 for package: libselinux-devel-2.5-14.1.el7.x86_64
--> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.5-14.1.el7.x86_64
---> Package libverto-devel.x86_64 0:0.2.5-4.el7 will be installed
---> Package openssl.x86_64 1:1.0.2k-16.el7 will be updated
---> Package openssl.x86_64 1:1.0.2k-16.el7_6.1 will be an update
---> Package perl-ExtUtils-Manifest.noarch 0:1.61-244.el7 will be installed
---> Package pyparsing.noarch 0:1.5.6-9.el7 will be installed
--> Running transaction check
---> Package libsepol-devel.x86_64 0:2.5-10.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
openssl-devel x86_64 1:1.0.2k-16.el7_6.1 updates 1.5 M
perl-devel x86_64 4:5.16.3-294.el7_6 updates 453 k
Installing for dependencies:
gdbm-devel x86_64 1.10-8.el7 base 47 k
keyutils-libs-devel x86_64 1.5.8-3.el7 base 37 k
krb5-devel x86_64 1.15.1-37.el7_6 updates 271 k
libcom_err-devel x86_64 1.42.9-13.el7 base 31 k
libdb-devel x86_64 5.3.21-24.el7 base 38 k
libkadm5 x86_64 1.15.1-37.el7_6 updates 178 k
libselinux-devel x86_64 2.5-14.1.el7 base 187 k
libsepol-devel x86_64 2.5-10.el7 base 77 k
libverto-devel x86_64 0.2.5-4.el7 base 12 k
perl-ExtUtils-Install noarch 1.58-294.el7_6 updates 75 k
perl-ExtUtils-MakeMaker noarch 6.68-3.el7 base 275 k
perl-ExtUtils-Manifest noarch 1.61-244.el7 base 31 k
perl-ExtUtils-ParseXS noarch 1:3.18-3.el7 base 77 k
pyparsing noarch 1.5.6-9.el7 base 94 k
systemtap-sdt-devel x86_64 3.3-3.el7 base 74 k
zlib-devel x86_64 1.2.7-18.el7 base 50 k
Updating for dependencies:
openssl x86_64 1:1.0.2k-16.el7_6.1 updates 493 k
openssl-libs x86_64 1:1.0.2k-16.el7_6.1 updates 1.2 M
Transaction Summary
================================================================================
Install 2 Packages (+16 Dependent packages)
Upgrade ( 2 Dependent packages)
Total download size: 5.1 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/20): gdbm-devel-1.10-8.el7.x86_64.rpm | 47 kB 00:00
(2/20): libdb-devel-5.3.21-24.el7.x86_64.rpm | 38 kB 00:00
(3/20): keyutils-libs-devel-1.5.8-3.el7.x86_64.rpm | 37 kB 00:00
(4/20): krb5-devel-1.15.1-37.el7_6.x86_64.rpm | 271 kB 00:00
(5/20): libsepol-devel-2.5-10.el7.x86_64.rpm | 77 kB 00:00
(6/20): libcom_err-devel-1.42.9-13.el7.x86_64.rpm | 31 kB 00:00
(7/20): libselinux-devel-2.5-14.1.el7.x86_64.rpm | 187 kB 00:00
(8/20): libverto-devel-0.2.5-4.el7.x86_64.rpm | 12 kB 00:00
(9/20): libkadm5-1.15.1-37.el7_6.x86_64.rpm | 178 kB 00:00
(10/20): openssl-1.0.2k-16.el7_6.1.x86_64.rpm | 493 kB 00:00
(11/20): perl-ExtUtils-Install-1.58-294.el7_6.noarch.rpm | 75 kB 00:00
(12/20): openssl-devel-1.0.2k-16.el7_6.1.x86_64.rpm | 1.5 MB 00:00
(13/20): perl-ExtUtils-ParseXS-3.18-3.el7.noarch.rpm | 77 kB 00:00
(14/20): openssl-libs-1.0.2k-16.el7_6.1.x86_64.rpm | 1.2 MB 00:00
(15/20): perl-devel-5.16.3-294.el7_6.x86_64.rpm | 453 kB 00:00
(16/20): perl-ExtUtils-Manifest-1.61-244.el7.noarch.rpm | 31 kB 00:00
(17/20): systemtap-sdt-devel-3.3-3.el7.x86_64.rpm | 74 kB 00:00
(18/20): perl-ExtUtils-MakeMaker-6.68-3.el7.noarch.rpm | 275 kB 00:00
(19/20): zlib-devel-1.2.7-18.el7.x86_64.rpm | 50 kB 00:00
(20/20): pyparsing-1.5.6-9.el7.noarch.rpm | 94 kB 00:00
--------------------------------------------------------------------------------
Total 8.1 MB/s | 5.1 MB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : 1:openssl-libs-1.0.2k-16.el7_6.1.x86_64 1/22
Installing : libkadm5-1.15.1-37.el7_6.x86_64 2/22
Installing : libsepol-devel-2.5-10.el7.x86_64 3/22
Installing : libselinux-devel-2.5-14.1.el7.x86_64 4/22
Installing : zlib-devel-1.2.7-18.el7.x86_64 5/22
Installing : libverto-devel-0.2.5-4.el7.x86_64 6/22
Installing : libcom_err-devel-1.42.9-13.el7.x86_64 7/22
Installing : gdbm-devel-1.10-8.el7.x86_64 8/22
Installing : pyparsing-1.5.6-9.el7.noarch 9/22
Installing : systemtap-sdt-devel-3.3-3.el7.x86_64 10/22
Installing : perl-ExtUtils-Manifest-1.61-244.el7.noarch 11/22
Installing : libdb-devel-5.3.21-24.el7.x86_64 12/22
Installing : 1:perl-ExtUtils-ParseXS-3.18-3.el7.noarch 13/22
Installing : perl-ExtUtils-MakeMaker-6.68-3.el7.noarch 14/22
Installing : perl-ExtUtils-Install-1.58-294.el7_6.noarch 15/22
Installing : 4:perl-devel-5.16.3-294.el7_6.x86_64 16/22
Installing : keyutils-libs-devel-1.5.8-3.el7.x86_64 17/22
Installing : krb5-devel-1.15.1-37.el7_6.x86_64 18/22
Installing : 1:openssl-devel-1.0.2k-16.el7_6.1.x86_64 19/22
Updating : 1:openssl-1.0.2k-16.el7_6.1.x86_64 20/22
Cleanup : 1:openssl-1.0.2k-16.el7.x86_64 21/22
Cleanup : 1:openssl-libs-1.0.2k-16.el7.x86_64 22/22
Verifying : keyutils-libs-devel-1.5.8-3.el7.x86_64 1/22
Verifying : libdb-devel-5.3.21-24.el7.x86_64 2/22
Verifying : perl-ExtUtils-Manifest-1.61-244.el7.noarch 3/22
Verifying : pyparsing-1.5.6-9.el7.noarch 4/22
Verifying : gdbm-devel-1.10-8.el7.x86_64 5/22
Verifying : libcom_err-devel-1.42.9-13.el7.x86_64 6/22
Verifying : perl-ExtUtils-MakeMaker-6.68-3.el7.noarch 7/22
Verifying : libverto-devel-0.2.5-4.el7.x86_64 8/22
Verifying : zlib-devel-1.2.7-18.el7.x86_64 9/22
Verifying : krb5-devel-1.15.1-37.el7_6.x86_64 10/22
Verifying : 1:openssl-1.0.2k-16.el7_6.1.x86_64 11/22
Verifying : 1:perl-ExtUtils-ParseXS-3.18-3.el7.noarch 12/22
Verifying : perl-ExtUtils-Install-1.58-294.el7_6.noarch 13/22
Verifying : 1:openssl-libs-1.0.2k-16.el7_6.1.x86_64 14/22
Verifying : libsepol-devel-2.5-10.el7.x86_64 15/22
Verifying : 1:openssl-devel-1.0.2k-16.el7_6.1.x86_64 16/22
Verifying : libkadm5-1.15.1-37.el7_6.x86_64 17/22
Verifying : libselinux-devel-2.5-14.1.el7.x86_64 18/22
Verifying : 4:perl-devel-5.16.3-294.el7_6.x86_64 19/22
Verifying : systemtap-sdt-devel-3.3-3.el7.x86_64 20/22
Verifying : 1:openssl-libs-1.0.2k-16.el7.x86_64 21/22
Verifying : 1:openssl-1.0.2k-16.el7.x86_64 22/22
Installed:
openssl-devel.x86_64 1:1.0.2k-16.el7_6.1 perl-devel.x86_64 4:5.16.3-294.el7_6
Dependency Installed:
gdbm-devel.x86_64 0:1.10-8.el7
keyutils-libs-devel.x86_64 0:1.5.8-3.el7
krb5-devel.x86_64 0:1.15.1-37.el7_6
libcom_err-devel.x86_64 0:1.42.9-13.el7
libdb-devel.x86_64 0:5.3.21-24.el7
libkadm5.x86_64 0:1.15.1-37.el7_6
libselinux-devel.x86_64 0:2.5-14.1.el7
libsepol-devel.x86_64 0:2.5-10.el7
libverto-devel.x86_64 0:0.2.5-4.el7
perl-ExtUtils-Install.noarch 0:1.58-294.el7_6
perl-ExtUtils-MakeMaker.noarch 0:6.68-3.el7
perl-ExtUtils-Manifest.noarch 0:1.61-244.el7
perl-ExtUtils-ParseXS.noarch 1:3.18-3.el7
pyparsing.noarch 0:1.5.6-9.el7
systemtap-sdt-devel.x86_64 0:3.3-3.el7
zlib-devel.x86_64 0:1.2.7-18.el7
Dependency Updated:
openssl.x86_64 1:1.0.2k-16.el7_6.1 openssl-libs.x86_64 1:1.0.2k-16.el7_6.1
Complete!
[root@LIU application]#
[root@LIU application]#
[root@LIU application]# ls
[root@LIU application]# mkdir -p /application/tools/
[root@LIU application]# cd /application/tools/
[root@LIU tools]# wget https://github.com/arut/nginx-rtmp-module/archive/master.zip
--2019-05-10 09:12:40-- https://github.com/arut/nginx-rtmp-module/archive/master.zip
Resolving github.com (github.com)... 13.250.177.223
Connecting to github.com (github.com)|13.250.177.223|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/arut/nginx-rtmp-module/zip/master [following]
--2019-05-10 09:12:41-- https://codeload.github.com/arut/nginx-rtmp-module/zip/master
Resolving codeload.github.com (codeload.github.com)... 13.250.162.133
Connecting to codeload.github.com (codeload.github.com)|13.250.162.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 545945 (533K) [application/zip]
Saving to: ‘master.zip’
100%[======================================>] 545,945 1.10MB/s in 0.5s
2019-05-10 09:12:42 (1.10 MB/s) - ‘master.zip’ saved [545945/545945]
[root@LIU tools]# wget http://nginx.org/download/nginx-1.12.2.tar.gz
--2019-05-10 09:12:50-- http://nginx.org/download/nginx-1.12.2.tar.gz
Resolving nginx.org (nginx.org)... 62.210.92.35, 95.211.80.227, 2001:1af8:4060:a004:21::e3
Connecting to nginx.org (nginx.org)|62.210.92.35|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 981687 (959K) [application/octet-stream]
Saving to: ‘nginx-1.12.2.tar.gz’
100%[======================================>] 981,687 604KB/s in 1.6s
2019-05-10 09:12:53 (604 KB/s) - ‘nginx-1.12.2.tar.gz’ saved [981687/981687]
[root@LIU tools]# ls
master.zip nginx-1.12.2.tar.gz
[root@LIU tools]# unzip -o master.zip
[root@LIU tools]# tar xf nginx-1.12.2.tar.gz
[root@LIU tools]# ls
master.zip nginx-1.12.2 nginx-1.12.2.tar.gz nginx-rtmp-module-master
[root@LIU tools]# cd nginx-
-bash: cd: nginx-: No such file or directory
[root@LIU tools]# cd nginx-1.12.2/
[root@LIU nginx-1.12.2]# ls
auto CHANGES.ru configure html man src
CHANGES conf contrib LICENSE README
[root@LIU nginx-1.12.2]# ll
total 724
drwxr-xr-x 6 1001 1001 4096 May 10 09:38 auto
-rw-r--r-- 1 1001 1001 278202 Oct 17 2017 CHANGES
-rw-r--r-- 1 1001 1001 423948 Oct 17 2017 CHANGES.ru
drwxr-xr-x 2 1001 1001 4096 May 10 09:38 conf
-rwxr-xr-x 1 1001 1001 2481 Oct 17 2017 configure
drwxr-xr-x 4 1001 1001 4096 May 10 09:38 contrib
drwxr-xr-x 2 1001 1001 4096 May 10 09:38 html
-rw-r--r-- 1 1001 1001 1397 Oct 17 2017 LICENSE
drwxr-xr-x 2 1001 1001 4096 May 10 09:38 man
-rw-r--r-- 1 1001 1001 49 Oct 17 2017 README
drwxr-xr-x 9 1001 1001 4096 May 10 09:38 src
[root@LIU nginx-1.12.2]# vim src/core/nginx.h
[root@LIU nginx-1.12.2]# vim src/http/ngx_http_header_filter_module.c
[root@LIU nginx-1.12.2]# vim src/http/ngx_http_special_response.c
[root@LIU nginx-1.12.2]# ./configure --prefix=/application/nginx-1.12.2 --user=www --group=www --with-http_ssl_module --with-http_stub_status_module --add-module=/application/tools/nginx-rtmp-module-master/
checking for OS
+ Linux 3.10.0-957.5.1.el7.x86_64 x86_64
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)
checking for gcc -pipe switch ... found
checking for -Wl,-E switch ... found
checking for gcc builtin atomic operations ... found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for gcc builtin 64 bit byteswap ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
checking for epoll ... found
checking for EPOLLRDHUP ... found
checking for EPOLLEXCLUSIVE ... not found
checking for O_PATH ... found
checking for sendfile() ... found
checking for sendfile64() ... found
checking for sys/prctl.h ... found
checking for prctl(PR_SET_DUMPABLE) ... found
checking for sched_setaffinity() ... found
checking for crypt_r() ... found
checking for sys/vfs.h ... found
checking for poll() ... found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for crypt() in libcrypt ... found
checking for F_READAHEAD ... not found
checking for posix_fadvise() ... found
checking for O_DIRECT ... found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for statfs() ... found
checking for statvfs() ... found
checking for dlopen() ... not found
checking for dlopen() in libdl ... found
checking for sched_yield() ... found
checking for SO_SETFIB ... not found
checking for SO_REUSEPORT ... found
checking for SO_ACCEPTFILTER ... not found
checking for SO_BINDANY ... not found
checking for IP_BIND_ADDRESS_NO_PORT ... not found
checking for IP_TRANSPARENT ... found
checking for IP_BINDANY ... not found
checking for IP_RECVDSTADDR ... not found
checking for IP_PKTINFO ... found
checking for IPV6_RECVPKTINFO ... found
checking for TCP_DEFER_ACCEPT ... found
checking for TCP_KEEPIDLE ... found
checking for TCP_FASTOPEN ... found
checking for TCP_INFO ... found
checking for accept4() ... found
checking for eventfd() ... found
checking for int size ... 4 bytes
checking for long size ... 8 bytes
checking for long long size ... 8 bytes
checking for void * size ... 8 bytes
checking for uint32_t ... found
checking for uint64_t ... found
checking for sig_atomic_t ... found
checking for sig_atomic_t size ... 4 bytes
checking for socklen_t ... found
checking for in_addr_t ... found
checking for in_port_t ... found
checking for rlim_t ... found
checking for uintptr_t ... uintptr_t found
checking for system byte ordering ... little endian
checking for size_t size ... 8 bytes
checking for off_t size ... 8 bytes
checking for time_t size ... 8 bytes
checking for AF_INET6 ... found
checking for setproctitle() ... not found
checking for pread() ... found
checking for pwrite() ... found
checking for pwritev() ... found
checking for sys_nerr ... found
checking for localtime_r() ... found
checking for posix_memalign() ... found
checking for memalign() ... found
checking for mmap(MAP_ANON|MAP_SHARED) ... found
checking for mmap("/dev/zero", MAP_SHARED) ... found
checking for System V shared memory ... found
checking for POSIX semaphores ... not found
checking for POSIX semaphores in libpthread ... found
checking for struct msghdr.msg_control ... found
checking for ioctl(FIONBIO) ... found
checking for struct tm.tm_gmtoff ... found
checking for struct dirent.d_namlen ... not found
checking for struct dirent.d_type ... found
checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
checking for openat(), fstatat() ... found
checking for getaddrinfo() ... found
configuring additional modules
adding module in /application/tools/nginx-rtmp-module-master/
+ ngx_rtmp_module was configured
checking for PCRE library ... found
checking for PCRE JIT support ... found
checking for OpenSSL library ... found
checking for zlib library ... found
creating objs/Makefile
Configuration summary
+ using system PCRE library
+ using system OpenSSL library
+ using system zlib library
nginx path prefix: "/application/nginx-1.12.2"
nginx binary file: "/application/nginx-1.12.2/sbin/nginx"
nginx modules path: "/application/nginx-1.12.2/modules"
nginx configuration prefix: "/application/nginx-1.12.2/conf"
nginx configuration file: "/application/nginx-1.12.2/conf/nginx.conf"
nginx pid file: "/application/nginx-1.12.2/logs/nginx.pid"
nginx error log file: "/application/nginx-1.12.2/logs/error.log"
nginx http access log file: "/application/nginx-1.12.2/logs/access.log"
nginx http client request body temporary files: "client_body_temp"
nginx http proxy temporary files: "proxy_temp"
nginx http fastcgi temporary files: "fastcgi_temp"
nginx http uwsgi temporary files: "uwsgi_temp"
nginx http scgi temporary files: "scgi_temp"
[root@LIU nginx-1.12.2]#
[root@LIU nginx-1.12.2]# make && make install
=====================此处省略一万行.........========================
test -f '/application/nginx-1.12.2/conf/scgi_params' \
|| cp conf/scgi_params '/application/nginx-1.12.2/conf'
cp conf/scgi_params \
'/application/nginx-1.12.2/conf/scgi_params.default'
test -f '/application/nginx-1.12.2/conf/nginx.conf' \
|| cp conf/nginx.conf '/application/nginx-1.12.2/conf/nginx.conf'
cp conf/nginx.conf '/application/nginx-1.12.2/conf/nginx.conf.default'
test -d '/application/nginx-1.12.2/logs' \
|| mkdir -p '/application/nginx-1.12.2/logs'
test -d '/application/nginx-1.12.2/logs' \
|| mkdir -p '/application/nginx-1.12.2/logs'
test -d '/application/nginx-1.12.2/html' \
|| cp -R html '/application/nginx-1.12.2'
test -d '/application/nginx-1.12.2/logs' \
|| mkdir -p '/application/nginx-1.12.2/logs'
make[1]: Leaving directory `/application/tools/nginx-1.12.2'
[root@LIU nginx-1.12.2]# echo $?
0
[root@LIU nginx-1.12.2]#
[root@LIU nginx-1.12.2]# cd /application/nginx-1.12.2/
[root@LIU nginx-1.12.2]# pwd
/application/tools/nginx-1.12.2
[root@LIU nginx-1.12.2]# cd /application/nginx-1.12.2/
[root@LIU nginx-1.12.2]# ls
conf html logs sbin
[root@LIU nginx-1.12.2]# ln -s /application/nginx-1.12.2/ /application/nginx
[root@LIU nginx-1.12.2]# ls sbin/
nginx
[root@LIU nginx-1.12.2]# ln -s /application/nginx/sbin/nginx /usr/sbin/
[root@LIU nginx-1.12.2]# which nginx
/usr/sbin/nginx
[root@LIU nginx-1.12.2]# nginx -V
nginx version: LIUlaoLiu/1.12.2
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)
built with OpenSSL 1.0.2k-fips 26 Jan 2017
TLS SNI support enabled
configure arguments: --prefix=/application/nginx-1.12.2 --user=www --group=www --with-http_ssl_module --with-http_stub_status_module --add-module=/application/tools/nginx-rtmp-module-master/
rtmp {
server {
listen 1935;
chunk_size 5000;
application LIUlaoLiuav {
live on;
hls on;
hls-path /application/nginx/html/hls ;
record off;
}
}
}
=============未完待续=============
==================此文太监================