{"id":866,"date":"2023-12-21T21:45:08","date_gmt":"2023-12-21T13:45:08","guid":{"rendered":"http:\/\/www.inhhh.com\/blog\/?p=866"},"modified":"2023-12-25T08:33:08","modified_gmt":"2023-12-25T00:33:08","slug":"%e7%b2%be%e7%ae%80%e4%b8%80%e4%bd%93%e6%9c%bacentos9","status":"publish","type":"post","link":"http:\/\/www.inhhh.com\/blog\/?p=866","title":{"rendered":"\u7cbe\u7b80\u4e00\u4f53\u673a+centos9"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>sudo yum update -y\nsudo yum upgrade -y\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl stop firewalld\nsystemctl disable firewalld\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install nginx -y\nsystemctl start nginx\nsystemctl enable nginx\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install php php-fpm php-mysqlnd php-gd php-mbstring php-sqlite3<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install samba\n\nvi \/etc\/samba\/smb.conf\n\n&#91;varwww]\n   comment = varwww\n   path = \/var\/www\n   writeable = yes\n   browseable = yes\n   write list = mee\n   public = no<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir -p \/var\/www\/module\nmkdir -p \/var\/www\/setup\n\ncd \/var\/www\/module\nwget http:\/\/....\/nginx-http-flv-module-master.zip\nwget http:\/\/....\/nginx-rtmp-module-master.zip\n\nunzip nginx-http-flv-module-master.zip\nunzip nginx-rtmp-module-master.zip\n\nmv \/var\/www\/module\/nginx-http-flv-module-master \/var\/www\/module\/nginx-http-flv-module\n\nmv \/var\/www\/module\/nginx-http-flv-module-master \/var\/www\/module\/nginx-http-flv-module\n\nrm -f nginx-http-flv-module-master.zip\nrm -f nginx-rtmp-module-master.zip\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir -p \/var\/www\/setup\ncd \/var\/www\/setup\nwget  http:\/\/www.im.com.cn\/source\/armhf\/zlib-1.2.11.tar.gz\ntar -zxvf zlib-1.2.11.tar.gz\ncd zlib-1.2.11\n.\/configure --prefix=\/usr\/local\/zlib\/\nmake &amp;&amp; make install\nrm -f \/var\/www\/setup\/zlib-1.2.11.tar.gz<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>#1.\u4e0b\u8f7d\nwget http:\/\/curl.haxx.se\/download\/curl-7.38.0.tar.gz\n#2.\u89e3\u538b\ntar -xzvf curl-7.38.0.tar.gz\n#3.\u5b89\u88c5\ncd curl-7.38.0\n.\/configure --prefix=\/usr\/local\/curl\nmake\nmake install\n\n\n#\u628a\u5934\u6587\u4ef6\u62f7\u5230\u5171\u6709\u4f4d\u7f6e\uff0c\u4e0d\u62f7\u7684\u8bdd\uff0c\u7f16\u8bd1\u7a0b\u5e8f\uff0c\u4f1a\u51fa\u9519 \uff0c\u9664\u975e-I\/usr\/include\u66ff\u4ee3\ncp -r \/usr\/local\/curl\/include\/curl \/usr\/include\/curl\n#\u628a\u5e93\u6587\u4ef6\u62f7\u5230\u5171\u6709\u4f4d\u7f6e\uff0c\u4e0d\u62f7\u7684\u8bdd\uff0c\u7f16\u8bd1\u7a0b\u5e8f\uff0c -lcurl \u4f1a\u51fa\u9519\ncp -r \/usr\/local\/curl\/lib\/libcurl* \/usr\/lib\n\n4.\u5b8c\u6210<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir -p \/var\/www\/setup\ncd \/var\/www\/setup\n#\u4e0b\u8f7dopencv-3.4.14\napt-get install -y libgtk2.0-dev\ncd \/var\/www\/setup\nmkdir opencv\ncd opencv\nwget http:\/\/www.im.com.cn\/source\/armhf\/opencv-3.4.14.tar.gz\ntar -zxvf opencv-3.4.14.tar.gz\ncd opencv-3.4.14\nmkdir release\ncd release\n#cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=\/usr\/local -D BUILD_PYTHON_SUPPORT=ON ..\ncmake -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 ..\nmake \nmake install\n\nrm -f opencv-3.4.14.tar.gz\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir -p \/var\/www\ncd \/var\/www\nmkdir -p \/var\/www\/setup\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-866","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/866","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=866"}],"version-history":[{"count":11,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/866\/revisions"}],"predecessor-version":[{"id":883,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/866\/revisions\/883"}],"wp:attachment":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=866"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}