{"id":392,"date":"2021-02-02T10:44:48","date_gmt":"2021-02-02T02:44:48","guid":{"rendered":"http:\/\/b.yesiyu.top\/?p=392"},"modified":"2021-02-02T10:44:48","modified_gmt":"2021-02-02T02:44:48","slug":"%e7%bd%91%e7%9b%98%e6%90%ad%e5%bb%ba%ef%bc%8c%e4%ba%91%e7%bd%91%e7%9b%98%ef%bc%8ccentos8-3%e9%83%a8%e7%bd%b2-seafile-8-0-2%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/b.yesiyu.top\/?p=392","title":{"rendered":"\u7f51\u76d8\u642d\u5efa\uff0c\u4e91\u7f51\u76d8\uff0cCentos8.3\u90e8\u7f72 seafile 8.0.2\u6559\u7a0b"},"content":{"rendered":"\n<p>\u865a\u62df\u673a\u5b89\u88c5\u7cfb\u7edf\u7cfb\u7edf\uff1aCentos 8.3 http:\/\/mirrors.aliyun.com\/centos\/8.3.2011\/isos\/x86_64\/CentOS-8.3.2011-x86_64-dvd1.iso<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u51c6\u5907\u5de5\u4f5c\uff1a<\/h2>\n\n\n\n<p>1\u3001\u5b89\u88c5 MariaDB<br>[root@seahub ~]##\u4f7f\u7528yum\u5b89\u88c5Mariadb<br>[root@seahub ~]# yum install -y mariadb mariadb-server<br>\u914d\u7f6eMariaDB<br>[root@snipeit ~]##\u521d\u59cb\u5316\u6570\u636e\u5e93<br>[root@snipeit ~]# service mariadb start<br>Redirecting to \/bin\/systemctl start mariadb.service<br>[root@snipeit ~]# mysql_secure_installation<\/p>\n\n\n\n<p>NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB<br>SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!<br>In order to log into MariaDB to secure it, we&#8217;ll need the current<br>password for the root user. If you&#8217;ve just installed MariaDB, and<br>you haven&#8217;t set the root password yet, the password will be blank,<br>so you should just press enter here.<br>Enter current password for root (enter for none): #\u76f4\u63a5\u56de\u8f66<br>OK, successfully used password, moving on\u2026<br>Setting the root password ensures that nobody can log into the MariaDB<br>root user without the proper authorisation.<br>Set root password? [Y\/n] y #\u662f\u5426\u8bbe\u7f6e\u5bc6\u7801\uff0c\u5f53\u7136\u662f<br>New password: PassW0rd #\u6570\u636e\u5e93\u7ba1\u7406\u5bc6\u7801<br>Re-enter new password: PassW0rd #\u786e\u8ba4\u5bc6\u7801<br>Password updated successfully!<br>Reloading privilege tables..<br>\u2026 Success!<br>By default, a MariaDB installation has an anonymous user, allowing anyone<br>to log into MariaDB without having to have a user account created for<br>them. This is intended only for testing, and to make the installation<br>go a bit smoother. You should remove them before moving into a<br>production environment.<br>Remove anonymous users? [Y\/n] y<br>\u2026 Success!<br>Normally, root should only be allowed to connect from &#8216;localhost&#8217;. This<br>ensures that someone cannot guess at the root password from the network.<br>Disallow root login remotely? [Y\/n] y<br>\u2026 Success!<br>By default, MariaDB comes with a database named &#8216;test&#8217; that anyone can<br>access. This is also intended only for testing, and should be removed<br>before moving into a production environment.<br>Remove test database and access to it? [Y\/n] y<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Dropping test database\u2026<br>\u2026 Success!<\/li><li>Removing privileges on test database\u2026<br>\u2026 Success!<br>Reloading the privilege tables will ensure that all changes made so far<br>will take effect immediately.<br>Reload privilege tables now? [Y\/n] y<br>\u2026 Success!<br>Cleaning up\u2026<br>All done! If you&#8217;ve completed all of the above steps, your MariaDB<br>installation should now be secure.<\/li><\/ul>\n\n\n\n<p>Thanks for using MariaDB!<br>[root@snipeit ~]##\u767b\u9646\u6570\u636e\u5e93\uff0c\u767b\u9646\u6210\u529f\u5219\u8868\u793a\u5b89\u88c5\u5b8c\u6210<br>[root@snipeit ~]# mysql -u root -p<br>Enter password:<br>MariaDB [(none)]&gt; exit<br>Bye<\/p>\n\n\n\n<p>2\u3001\u5b89\u88c5\u4f9d\u8d56\u73af\u5883<br>yum install tree -y #\u8fd9\u4e2a\u662f\u7ed3\u6784\u76ee\u5f55<br>yum install wget \u2013y #\u7ec4\u4ef6<br>yum install vim \u2013y #\u7ec4\u4ef6<br>yum -y install gcc gcc-c++ #\u5fc5\u88c5<br>yum install python3-devel -y #\u5fc5\u88c5<br>yum install mariadb-devel -y #\u5fc5\u88c5<br>yum install python3 python3-setuptools python3-pip python3-ldap -y #\u5fc5\u88c5<br>pip3 install Pillow pylibmc captcha jinja2 sqlalchemy #\u5fc5\u88c5\uff0c\u4e00\u9879\u4e00\u9879\u6765<br>pip3 install django-pylibmc django-simple-captcha #\u5fc5\u88c5\uff0c\u4e00\u9879\u4e00\u9879\u6765<br>pip3 install psd-tools #\u5fc5\u88c5\uff0c\u4e00\u9879\u4e00\u9879\u6765<br>pip3 install ConfigParser #\u5fc5\u88c5\uff0c\u4e00\u9879\u4e00\u9879\u6765<br>pip3 install future #\u5fc5\u88c5\uff0c\u4e00\u9879\u4e00\u9879\u6765<br>pip3 install mysqlclient #\u5fc5\u88c5\uff0c\u4e00\u9879\u4e00\u9879\u6765<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u4e0a\u9762\u7684\u73af\u5883\u5b89\u88c5\u53ef\u80fd\u4f1a\u6709\u591a\u6b21\u5931\u8d25\uff08\u7f51\u7edc\u539f\u56e0\uff09\uff0c\u8bf7\u591a\u6b21\u5c1d\u8bd5\uff0c\u4e00\u9879\u4e00\u9879\u8fc7\uff0c\u5fc5\u987b\u4fdd\u8bc1\u6240\u6709\u7684\u7ec4\u4ef6\u5b89\u88c5\u6210\u529f<\/h1>\n\n\n\n<p>3\u3001 \u73af\u5883\u90e8\u7f72\u5b8c\u6210\u540e\uff0c\u6709\u6761\u4ef6\u7684\u505a\u4e2a\u6574\u673a\u5907\u4efd\uff08\u5feb\u7167\uff09<\/p>\n\n\n\n<p>[root@seahub ~]# cd \/opt\/ #\u8fdb\u5165opt\u76ee\u5f55<br>[root@seahub ~]# ls<br>[root@seahub ~]# mkdir seafile #\u521b\u5efa\u5b89\u88c5\u76ee\u5f55<br>[root@seahub ~]# wget https:\/\/seafile-downloads.oss-cn-shanghai.aliyuncs.com\/seafile-server_8.0.2_x86-64.tar.gz #\u4e0b\u8f7dseafile\u5b89\u88c5\u5305<br>[root@seahub ~]# ls<br>seafile seafile-server_8.0.2_x86-64.tar.gz<br>[root@seahub ~]# cp seafile-server_8.0.2_x86-64.tar.gz seafile #\u590d\u5236\u4e00\u4efd<br>[root@seahub ~]# ls<br>seafile seafile-server_8.0.2_x86-64.tar.gz<br>[root@seahub ~]# cd seafile\/<br>[root@seahub ~]# ls<br>seafile-server_8.0.2_x86-64.tar.gz<br>[root@seahub ~]# tar -xzf seafile-server_8.0.2_x86-64.tar.gz #\u89e3\u538b\u5b89\u88c5\u5305<br>[root@seahub ~]# ls<br>seafile-server-8.0.2 seafile-server_8.0.2_x86-64.tar.gz<br>[root@seahub ~]# mkdir installd<br>[root@seahub ~]# mv seafile-server_8.0.2_x86-64.tar.gz installd\/ #\u5c06\u538b\u7f29\u5305\u5f52\u6863\uff0c\u672c\u4eba\u5f3a\u8feb\u75c7\uff0c\u4e0d\u9700\u8981\u7684\u7565\u8fc7\u2026<\/p>\n\n\n\n<p>4\u3001\u5b89\u88c5\u5305\u4e0b\u8f7d\u5b8c\u6210\uff0c\u76ee\u5f55\u7ed3\u6784\u51c6\u5907ok\uff0cEMM\u2026\u6709\u6761\u4ef6\u7684\u505a\u5907\u4efd\uff08\u5feb\u7167\uff09<\/p>\n\n\n\n<p>[root@seahub ~]#cd seafile-server-8.0.2\/ #\u8fdb\u53bb\u5b89\u88c5\u76ee\u5f55<br>[root@seahub ~]#.\/setup-seafile-mysql.sh #\u5f00\u59cb\u5b89\u88c5<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Checking python on this machine \u2026<\/h2>\n\n\n\n<p>This script will guide you to setup your seafile server using MySQL.<br>Make sure you have read seafile server manual at<br>https:\/\/download.seafile.com\/published\/seafile-manual\/home.md<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Press ENTER to continue #\u56de\u8f66\u5f00\u59cb\u5b89\u88c5<\/h2>\n\n\n\n<p>What is the name of the server? It will be displayed on the client.<br>3 &#8211; 15 letters or digits<br>[ server name ] seahub #\u670d\u52a1\u5668\u540d\uff0c\u968f\u4fbf\u8f93\u4e5f\u53ef\u4ee5<br>What is the ip or domain of the server?<br>For example: www.mycompany.com, 192.168.1.101<br>[ This server&#8217;s ip or domain ] 192.168.1.3 #IP\u5730\u5740\u6216\u57df\u540d<br>Which port do you want to use for the seafile fileserver?<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">[ default &#8220;8082&#8221; ] #\u7aef\u53e3\u9ed8\u8ba4\u5373\u53ef<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">Please choose a way to initialize seafile databases:<\/h2>\n\n\n\n<p>[1] Create new ccnet\/seafile\/seahub databases<br>[2] Use existing ccnet\/seafile\/seahub databases<br>[ 1 or 2 ] 1 #\u9009\u62e91<br>What is the host of mysql server?<br>[ default &#8220;localhost&#8221; ] #\u6570\u636e\u5e93\u5730\u5740\uff0c\u65e0\u7279\u6b8a\u9700\u6c42\uff0c\u9ed8\u8ba4<br>What is the port of mysql server?<br>[ default &#8220;3306&#8221; ] #\u6570\u636e\u5e93\u7aef\u53e3\uff0c\u65e0\u7279\u6b8a\u9700\u6c42\u9ed8\u8ba4<br>What is the password of the mysql root user?<br>[ root password ]PassW0rd #\u4e0a\u9762\u8bbe\u7f6e\u7684\u6570\u636e\u5e93\u7ba1\u7406\u5bc6\u7801<br>verifying password of user root \u2026 done<br>Enter the name for mysql user of seafile. It would be created if not exists.<br>[ default &#8220;seafile&#8221; ] #\u9ed8\u8ba4\uff0c\u76f4\u63a5\u56de\u8f66<br>Enter the password for mysql user &#8220;seafile&#8221;:<br>[ password for seafile ] #\u9ed8\u8ba4\uff0c\u76f4\u63a5\u56de\u8f66<br>Enter the database name for ccnet-server:<br>[ default &#8220;ccnet-db&#8221; ] #\u9ed8\u8ba4\uff0c\u76f4\u63a5\u56de\u8f66<br>Enter the database name for seafile-server:<br>[ default &#8220;seafile-db&#8221; ] #\u9ed8\u8ba4\uff0c\u76f4\u63a5\u56de\u8f66<br>Enter the database name for seahub:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">[ default &#8220;seahub-db&#8221; ] #\u9ed8\u8ba4\uff0c\u76f4\u63a5\u56de\u8f66<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">This is your configuration<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>server name:            seahub\nserver ip\/domain:       192.168.1.3\nseafile data dir:       \/opt\/seafile\/seafile-data\nfileserver port:        8082\ndatabase:               create new\nccnet database:         ccnet-db\nseafile database:       seafile-db\nseahub database:        seahub-db<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">database user: seafile<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">Press ENTER to continue, or Ctrl-C to abort #\u786e\u8ba4\u4e0a\u8ff0\u4fe1\u606f\u65e0\u8bef\uff0c\u76f4\u63a5\u56de\u8f66<\/h2>\n\n\n\n<p>Generating ccnet configuration \u2026<br>Generating seafile configuration \u2026<br>done<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Generating seahub configuration \u2026<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">Now creating ccnet database tables \u2026<\/h2>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Now creating seafile database tables \u2026<\/h2>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Now creating seahub database tables \u2026<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">creating seafile-server-latest symbolic link \u2026 done<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">Your seafile server configuration has been finished successfully.<\/h2>\n\n\n\n<p>run seafile server: .\/seafile.sh { start | stop | restart }<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">run seahub server: .\/seahub.sh { start | stop | restart }<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">If you are behind a firewall, remember to allow input\/output of these tcp ports:<\/h2>\n\n\n\n<p>port of seafile fileserver: 8082<br>port of seahub: 8000<br>When problems occur, Refer to<br>https:\/\/download.seafile.com\/published\/seafile-manual\/home.md<br>for information.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b89\u88c5\u5b8c\u6210<\/h3>\n\n\n\n<p>[root@seahub ~]# cd \/opt\/seafile\/<br>[root@seahub ~]#tree -L 2 #\u67e5\u770b\u4e00\u4e0b\u76ee\u5f55\u7ed3\u6784\uff0c\u770b\u4e0d\u770b\u90fd\u884c\uff0c\u672c\u4eba\u5f3a\u8feb\u75c7<br>.<br>\u251c\u2500\u2500 ccnet<br>\u251c\u2500\u2500 conf<br>\u2502 \u251c\u2500\u2500 ccnet.conf<br>\u2502 \u251c\u2500\u2500 gunicorn.conf.py<br>\u2502 \u251c\u2500\u2500 seafdav.conf<br>\u2502 \u251c\u2500\u2500 seafile.conf<br>\u2502 \u2514\u2500\u2500 seahub_settings.py<br>\u251c\u2500\u2500 installd<br>\u2502 \u2514\u2500\u2500 seafile-server_8.0.2_x86-64.tar.gz<br>\u251c\u2500\u2500 seafile-data<br>\u2502 \u2514\u2500\u2500 library-template<br>\u251c\u2500\u2500 seafile-server-8.0.2<br>\u2502 \u251c\u2500\u2500 check_init_admin.py<br>\u2502 \u251c\u2500\u2500 reset-admin.sh<br>\u2502 \u251c\u2500\u2500 runtime<br>\u2502 \u251c\u2500\u2500 seaf-fsck.sh<br>\u2502 \u251c\u2500\u2500 seaf-fuse.sh<br>\u2502 \u251c\u2500\u2500 seaf-gc.sh<br>\u2502 \u251c\u2500\u2500 seafile<br>\u2502 \u251c\u2500\u2500 seafile.sh<br>\u2502 \u251c\u2500\u2500 seahub<br>\u2502 \u251c\u2500\u2500 seahub.sh<br>\u2502 \u251c\u2500\u2500 setup-seafile-mysql.py<br>\u2502 \u251c\u2500\u2500 setup-seafile-mysql.sh<br>\u2502 \u251c\u2500\u2500 setup-seafile.sh<br>\u2502 \u251c\u2500\u2500 sql<br>\u2502 \u2514\u2500\u2500 upgrade<br>\u251c\u2500\u2500 seafile-server-latest -&gt; seafile-server-8.0.2<br>\u2514\u2500\u2500 seahub-data<br>\u2514\u2500\u2500 avatars<\/p>\n\n\n\n<p>14 directories, 16 files<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u6b64\u5904\u5df2\u5b89\u88c5\u5b8c\u6210\uff0c\u63a5\u4e0b\u6765\u542f\u52a8Seafile<\/h1>\n\n\n\n<p>[root@seahub ~]#\/opt\/seafile\/seafile-server-latest\/.\/seafile.sh start<br>[root@seahub ~]#\/opt\/seafile\/seafile-server-latest\/.\/seahub.sh start #\u7b2c\u4e00\u6b21\u9700\u8981\u8bbe\u7f6e\u90ae\u7bb1\u548c\u7ba1\u7406\u5458\u5bc6\u7801\uff0c\u6bd4\u8f83\u7b80\u5355\uff0c\u4e0d\u505a\u8be6\u7ec6\u4ecb\u7ecd<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u6dfb\u52a0\u5f00\u673a\u542f\u52a8<\/h1>\n\n\n\n<p>[root@seahub ~]#vim \/etc\/rc.d\/rc.local #\u6309i\u952e\uff0c\u63d2\u5165\u4e00\u4e0b\u5185\u5bb9\uff0cESC:wq\u4fdd\u5b58<br>\/opt\/seafile\/seafile-server-latest\/.\/seafile.sh start<br>\/opt\/seafile\/seafile-server-latest\/.\/seahub.sh start<br>[root@seahub ~]#chmod +x \/etc\/rc.d\/rc.local<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u63a5\u4e0b\u6765\uff0c127.0.0.1:8000\u53ef\u4ee5\u8bbf\u95ee\u4e86\uff0c\u4f46\u662f\u5176\u5b83\u5730\u5740\u4e0d\u80fd\u8bbf\u95ee\uff0c\u6b64\u65f6\u9700\u8981\u914d\u7f6eNginx\u53cd\u5411\u4ee3{\u8fc7}{\u6ee4}\u7406\u624d\u884c<\/h1>\n\n\n\n<p>[root@seahub ~]#yum install nginx #\u5b89\u88c5Nginx<br>[root@seahub ~]# vi \/etc\/nginx\/nginx.conf #\u4fee\u6539nginx\u914d\u7f6e\u6587\u4ef6\uff0c\u4fee\u6539\u540e\u7684\u5982\u4e0b<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">For more information on configuration, see:<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">* Official English Documentation: http:\/\/nginx.org\/en\/docs\/<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">* Official Russian Documentation: http:\/\/nginx.org\/ru\/docs\/<\/h1>\n\n\n\n<p>user nginx;<br>worker_processes auto;<br>error_log \/var\/log\/nginx\/error.log;<br>pid \/run\/nginx.pid;<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Load dynamic modules. See \/usr\/share\/doc\/nginx\/README.dynamic.<\/h1>\n\n\n\n<p>include \/usr\/share\/nginx\/modules\/*.conf;<\/p>\n\n\n\n<p>events {<br>worker_connections 1024;<br>}<\/p>\n\n\n\n<p>http {<br>log_format main &#8216;$remote_addr &#8211; $remote_user [$time_local] &#8220;$request&#8221; &#8216;<br>&#8216;$status $body_bytes_sent &#8220;$http_referer&#8221; &#8216;<br>&#8216;&#8221;$http_user_agent&#8221; &#8220;$http_x_forwarded_for&#8221;&#8216;;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>access_log  \/var\/log\/nginx\/access.log  main;\n\nsendfile            on;\ntcp_nopush          on;\ntcp_nodelay         on;\nkeepalive_timeout   65;\ntypes_hash_max_size 2048;\n\ninclude             \/etc\/nginx\/mime.types;\ndefault_type        application\/octet-stream;\n\n# Load modular configuration files from the \/etc\/nginx\/conf.d directory.\n# See http:\/\/nginx.org\/en\/docs\/ngx_core_module.html#include\n# for more information.\ninclude \/etc\/nginx\/conf.d\/*.conf;<\/code><\/pre>\n\n\n\n<p>server {<br>listen 80;<br>server_name 192.168.1.3;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>proxy_set_header X-Forwarded-For $remote_addr;\n\nlocation \/ {\n     proxy_pass         http:\/\/127.0.0.1:8000;\n     proxy_set_header   Host $host;\n     proxy_set_header   X-Real-IP $remote_addr;\n     proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;\n     proxy_set_header   X-Forwarded-Host $server_name;\n     proxy_read_timeout  1200s;\n\n     # used for view\/edit office file via Office Online Server\n     client_max_body_size 0;\n\n     access_log      \/var\/log\/nginx\/seahub.access.log;\n     error_log       \/var\/log\/nginx\/seahub.error.log;\n}\nlocation \/seafhttp {\n    rewrite ^\/seafhttp(.*)$ $1 break;\n    proxy_pass http:\/\/127.0.0.1:8082;\n    client_max_body_size 0;\n    proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;\n\n    proxy_connect_timeout  36000s;\n    proxy_read_timeout  36000s;\n    proxy_send_timeout  36000s;\n\n    send_timeout  36000s;\n}\nlocation \/media {\n    root \/opt\/seafile\/seafile-server-latest\/seahub;\n}<\/code><\/pre>\n\n\n\n<p>}<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Settings for a TLS enabled server.<\/h1>\n\n\n\n<p>#<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">server {<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">listen 443 ssl http2 default_server;<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">listen [::]:443 ssl http2 default_server;<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">server_name _;<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">root \/usr\/share\/nginx\/html;<\/h1>\n\n\n\n<p>#<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">ssl_certificate &#8220;\/etc\/pki\/nginx\/server.crt&#8221;;<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">ssl_certificate_key &#8220;\/etc\/pki\/nginx\/private\/server.key&#8221;;<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">ssl_session_cache shared:SSL:1m;<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">ssl_session_timeout 10m;<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">ssl_ciphers PROFILE=SYSTEM;<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">ssl_prefer_server_ciphers on;<\/h1>\n\n\n\n<p>#<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"># Load configuration files for the default server block.<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">include \/etc\/nginx\/default.d\/*.conf;<\/h1>\n\n\n\n<p>#<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">location \/ {<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">}<\/h1>\n\n\n\n<p>#<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">error_page 404 \/404.html;<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">location = \/40x.html {<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">}<\/h1>\n\n\n\n<p>#<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">error_page 500 502 503 504 \/50x.html;<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">location = \/50x.html {<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">}<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">}<\/h1>\n\n\n\n<p>}<\/p>\n\n\n\n<p>[root@seahub ~]# systemctl enable nginx #\u914d\u7f6enginx\u5f00\u673a\u542f\u52a8<br>[root@seahub ~]# firewall-cmd &#8211;permanent &#8211;zone=public &#8211;add-port=80\/tcp #\u9632\u706b\u5899\u7aef\u53e3\u5f00\u653e\uff0cEmm\u2026\u8fd9\u4e2a\u5dee\u70b9\u5fd8\u4e86<br>[root@seahub ~]# firewall-cmd &#8211;permanent &#8211;zone=public &#8211;add-port=8000\/tcp<br>[root@seahub ~]# firewall-cmd &#8211;permanent &#8211;zone=public &#8211;add-port=8082\/tcp<br>[root@seahub ~]# systemctl restart firewalld.service #\u91cd\u542f\u9632\u706b\u5899<br>[root@seahub ~]# setenforce 0 #\u4e34\u65f6\u5173\u95edselinu<br>[root@seahub ~]# vi \/etc\/sysconfig\/selinux #\u6c38\u4e45\u5173\u95edselinu<br>#SELINUX=enforcing \u6539\u4e3a SELINUX=disabled #\u6c38\u4e45\u5173\u95edselinux<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u5b89\u88c5\u5230\u6b64\u7ed3\u675f\uff0c\u8bbf\u95ee\uff1ahttp:\/\/192.168.1.3\uff0c\u8bd5\u8bd5\u770b#\u4f7f\u7528\u6559\u7a0b\u53c2\u8003\u5b98\u7f51\u6216\u81ea\u884c\u6478\u7d22<\/h1>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/attach.52pojie.cn\/forum\/202101\/27\/111756pjbsedty261sljm9.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>ibrar<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u5b98\u7f51\u5730\u5740\uff1ahttps:\/\/www.seafile.com\/<\/h1>\n","protected":false},"excerpt":{"rendered":"<p>\u865a\u62df\u673a\u5b89\u88c5\u7cfb\u7edf\u7cfb\u7edf\uff1aCentos 8.3 http:\/\/mirrors.aliyun.com\/centos\/8 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/b.yesiyu.top\/?p=392\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201c\u7f51\u76d8\u642d\u5efa\uff0c\u4e91\u7f51\u76d8\uff0cCentos8.3\u90e8\u7f72 seafile 8.0.2\u6559\u7a0b\u201d<\/span><\/a><\/p>\n","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-392","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=392"}],"version-history":[{"count":1,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/392\/revisions"}],"predecessor-version":[{"id":393,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/392\/revisions\/393"}],"wp:attachment":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}