os: linux ubuntu 12.04
1. Download address https://github.com/j0sh/crtmpserver
2. After decompression, read the readme inside
3. Install cmake, apt-get install cmake
4. Download openssh http://www.openssl. org/source/
installation steps:
#tar -xzf openssl-xxx.tar.gz
// Modify the configuration to generate a .so file, /usr/local/openssl is a custom installation location, you can modify it yourself, remember the location , and then modify the file
#./config --prefix=/usr/local/openssl shared zlib-dynamic enable-camellia
#./config -t
#make depend
#make install
5. Also need to modify the file
location : crtmpserver/builders/ cmake/cmake_find_modules/Find_openssl.cmake
FIND_PATH(OPENSSL_INCLUDE_PATH
NAMES
openssl/ssl.h PATHS
/
usr/local/
open
ssl/include
${TOOLCHAIN_HEADER_PATH}
....................................................
FIND_LIBRARY(OPENSSL_LIBRARY_PATH
NAMES
ssl
PATHS
/usr/local/
open
ssl/lib
${TOOLCHAIN_LIBRARY_PATH}
.....................................................
FIND_LIBRARY(CRYPTO_LIBRARY_PATH
NAMES
crypto
PATHS
/usr/local/
open
ssl /lib
${TOOLCHAIN_LIBRARY_PATH}
................................................
6.进入crtmpserver-centosinit\builders\cmake
执行cmake .
make
make install
Enter crtmpserver-centosinit/builders/cmake#start
service./crtmpserver/crtmpserver ./crtmpserver/crtmpserver.lua
7. Download jwplayer
http://www.longtailvideo.com/players/jw-flv-player
8. Install apach server http ://www.linuxidc.com/Linux/2016-04/130079.htm
1) Install the dependency package http://archive.apache.org/dist/apr/apr-1.4.6.tar.gz
apr-util- 1.5.2.tar.gz Copy
these two packages to usr/local/src, decompress tar -zxvf ***** Go
to the decompressed directory and specify the installation directory./configure
--prefix=/usr/ local/apr
make
make install
httpd-2.4.10 download
http://archive.apache.org/dist/httpd/
and copy it to usr/local/src and unzip
it into httpd-2.4.10 directory
./configure --prefix=/usr/local/apache --sysconfdir=/etc/httpd --enable-so --enable-rewirte --enable-ssl --enable-cgi --enable-cgid --enable- modules=most --enable-mods-shared=most --enable-mpms-shared=all --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ /If you encounter problems, see the following solutions
make
make install
pcre-devel download
apt-get install libpcre3
apt-get install libpcre3-dev // This is the way to install, no need to download
https://ftp.pcre.org/ pub/pcre/
solve mod_ssl has been requested but can not be built
sudo apt-get install openssl
sudo apt-get install libssl-dev
RedHat, centos is openssl-devel
setenforce 0 Turn off selinux. (temporary shutdown)
permanently shutdown vim /etc/selinux/config
After apt-get install selinux-utils
apache is installed, you can visit http://19.168.5.186
to see It Wroks!
This webpage comes from
/usr/local/apache/htdocs/index.html
So, you can put the content to be published Put it here for
reference :
http://blog.csdn.net/wangmj518/article/details/42318097
crtmpserver compile
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326096614&siteId=291194637
Recommended
Ranking