精简一体机+centos9

sudo yum update -y
sudo yum upgrade -y
systemctl stop firewalld
systemctl disable firewalld
yum install nginx -y
systemctl start nginx
systemctl enable nginx
yum install php php-fpm php-mysqlnd php-gd php-mbstring php-sqlite3
yum install samba

vi /etc/samba/smb.conf

[varwww]
   comment = varwww
   path = /var/www
   writeable = yes
   browseable = yes
   write list = mee
   public = no
mkdir -p /var/www/module
mkdir -p /var/www/setup

cd /var/www/module
wget http://..../nginx-http-flv-module-master.zip
wget http://..../nginx-rtmp-module-master.zip

unzip nginx-http-flv-module-master.zip
unzip nginx-rtmp-module-master.zip

mv /var/www/module/nginx-http-flv-module-master /var/www/module/nginx-http-flv-module

mv /var/www/module/nginx-http-flv-module-master /var/www/module/nginx-http-flv-module

rm -f nginx-http-flv-module-master.zip
rm -f nginx-rtmp-module-master.zip
mkdir -p /var/www/setup
cd /var/www/setup
wget  http://www.im.com.cn/source/armhf/zlib-1.2.11.tar.gz
tar -zxvf zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure --prefix=/usr/local/zlib/
make && make install
rm -f /var/www/setup/zlib-1.2.11.tar.gz
#1.下载
wget http://curl.haxx.se/download/curl-7.38.0.tar.gz
#2.解压
tar -xzvf curl-7.38.0.tar.gz
#3.安装
cd curl-7.38.0
./configure --prefix=/usr/local/curl
make
make install


#把头文件拷到共有位置,不拷的话,编译程序,会出错 ,除非-I/usr/include替代
cp -r /usr/local/curl/include/curl /usr/include/curl
#把库文件拷到共有位置,不拷的话,编译程序, -lcurl 会出错
cp -r /usr/local/curl/lib/libcurl* /usr/lib

4.完成
mkdir -p /var/www/setup
cd /var/www/setup
#下载opencv-3.4.14
apt-get install -y libgtk2.0-dev
cd /var/www/setup
mkdir opencv
cd opencv
wget http://www.im.com.cn/source/armhf/opencv-3.4.14.tar.gz
tar -zxvf opencv-3.4.14.tar.gz
cd opencv-3.4.14
mkdir release
cd release
#cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON ..
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_PYTHON_SUPPORT=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D WITH_OPENGL=ON -D WITH_GTK=ON ..
make 
make install

rm -f opencv-3.4.14.tar.gz
mkdir -p /var/www
cd /var/www
mkdir -p /var/www/setup

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注