{"id":193050,"date":"2020-06-03T08:33:27","date_gmt":"2020-06-03T00:33:27","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=193050"},"modified":"2020-06-02T11:34:37","modified_gmt":"2020-06-02T03:34:37","slug":"rhel-owncloud","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/rhel-owncloud.html","title":{"rendered":"RHEL7\u90e8\u7f72\u79c1\u6709\u4e91\u7f51\u76d8"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nOwnCloud \u4e00\u6b3e\u6587\u4ef6\u4e3b\u673a\u670d\u52a1\u8f6f\u4ef6\uff0c\u5c31\u662f\u6211\u4eec\u5e73\u65f6\u4f7f\u7528\u7684\u4e91\u5b58\u50a8\uff0c\u4e0d\u8fc7\u8fd9\u662f\u5728\u81ea\u5df1\u4e3b\u673a\u7684\u670d\u52a1\u5668\u4e0a\u5efa\u7acb\u5c5e\u4e8e\u81ea\u5df1\u7684\u79c1\u6709\u4e91\uff0cOwnCloud\u3000\u4f7f\u7528AGPLv3\u534f\u8bae\u53d1\u5e03\u3002\u672c\u9879\u76ee\u662f\u57fa\u4e8ePHP\u548cSQLite\uff0cMySQL\uff0cOracle\u6216PostgreSQL\u6570\u636e\u5e93\uff0c\u6240\u4ee5\u5b83\u53ef\u4ee5\u8fd0\u884c\u5728\u6240\u6709\u7684\u5e73\u53f0\u4e0a<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

\u4e0b\u8f7downcloud\u5b89\u88c5\u5305<\/strong><\/div>\n
[root@chao tools]# wget https:\/\/download.owncloud.org\/community\/owncloud-10.0.2.zip\r\n--2020-06-01 15:09:12--  https:\/\/download.owncloud.org\/community\/owncloud-10.0.2.zip\r\n\u6b63\u5728\u89e3\u6790\u4e3b\u673a download.owncloud.org (download.owncloud.org)... 116.203.164.24, 2a01:4f8:1c0c:8147::\r\n\u6b63\u5728\u8fde\u63a5 download.owncloud.org (download.owncloud.org)|116.203.164.24|:443... \u5df2\u8fde\u63a5\u3002\r\n\u5df2\u53d1\u51fa HTTP \u8bf7\u6c42\uff0c\u6b63\u5728\u7b49\u5f85\u56de\u5e94... 301 Moved Permanently\r\n\u4f4d\u7f6e\uff1ahttps:\/\/attic.owncloud.org\/community\/owncloud-10.0.2.zip [\u8ddf\u968f\u81f3\u65b0\u7684 URL]\r\n--2020-06-01 15:09:18--  https:\/\/attic.owncloud.org\/community\/owncloud-10.0.2.zip\r\n\u6b63\u5728\u89e3\u6790\u4e3b\u673a attic.owncloud.org (attic.owncloud.org)... 195.201.36.192, 2a01:4f8:c2c:5c1d::1\r\n\u6b63\u5728\u8fde\u63a5 attic.owncloud.org (attic.owncloud.org)|195.201.36.192|:443... \u5df2\u8fde\u63a5\u3002\r\n\u5df2\u53d1\u51fa HTTP \u8bf7\u6c42\uff0c\u6b63\u5728\u7b49\u5f85\u56de\u5e94... 200 OK\r\n\u957f\u5ea6\uff1a42123371 (40M) [application\/zip]\r\n\u6b63\u5728\u4fdd\u5b58\u81f3: \u201cowncloud-10.0.2.zip\u201d\r\n\r\n100%[=========================================================================================================>] 42,123,371   232KB\/s \u7528\u65f6 3m 14s \r\n\r\n2020-06-01 15:12:34 (212 KB\/s) - \u5df2\u4fdd\u5b58 \u201cowncloud-10.0.2.zip\u201d [42123371\/42123371])\r\n\r\n[root@chao tools]# ls\r\nowncloud-10.0.2.zip\r\n<\/pre>\n
\u5b89\u88c5\u4f9d\u8d56\u5305\u7ec4\u4ef6<\/strong><\/div>\n
[root@chao tools]# yum install -y httpd php php-mysql mariadb-server mariadb sqlite php-dom php-mbstring php-gd php-pdo wget vim<\/pre>\n
\u5c06owncloud\u5305\u4e0eapache\u7ed3\u5408<\/strong><\/div>\n
\u5c06owncloud\u89e3\u538b\u5230apache\u76ee\u5f55<\/strong><\/span><\/div>\n
[root@chao tools]# unzip owncloud-10.0.2.zip -d \/var\/www\/html\/<\/pre>\n
\u6388\u6743<\/strong><\/span><\/div>\n
[root@chao tools]# chown -R apache.apache \/var\/www\/html\/owncloud\/\r\n<\/pre>\n
\u8bbe\u7f6e\u6570\u636e\u5e93<\/strong><\/div>\n
\u542f\u52a8\u6570\u636e\u5e93\u548capache<\/strong><\/span><\/div>\n
[root@chao tools]# systemctl start mariadb\r\n[root@chao tools]# systemctl start httpd<\/pre>\n
\u5173\u95ed\u9632\u706b\u5899\u548cselinux<\/strong><\/span><\/div>\n
[root@chao tools]# setenforce 0\r\n[root@chao tools]# systemctl stop firewalld<\/pre>\n
\u521b\u5efa\u7528\u6237\u5e76\u6388\u6743<\/strong><\/span><\/div>\n
[root@chao tools]# mysql\r\nWelcome to the MariaDB monitor.  Commands end with ; or \\g.\r\nYour MariaDB connection id is 2\r\nServer version: 5.5.56-MariaDB MariaDB Server\r\n\r\nCopyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.\r\n\r\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\r\n\r\nMariaDB [(none)]> create database owncloud;\r\nQuery OK, 1 row affected (0.00 sec)\r\n\r\nMariaDB [(none)]> create user 'owncloud'@'localhost' identified by '123456';\r\nQuery OK, 0 rows affected (0.00 sec)\r\n\r\nMariaDB [(none)]> grant all on owncloud.* to 'owncloud'@'%';\r\nQuery OK, 0 rows affected (0.00 sec)\r\n\r\nMariaDB [(none)]> flush privileges;\r\nQuery OK, 0 rows affected (0.00 sec)\r\n\r\nMariaDB [(none)]> quit\r\nBye\r\n\r\n<\/pre>\n
\u767b\u5f55<\/strong><\/div>\n

\"\"<\/p>\n

\u586b\u5199\u76f8\u5173\u6570\u636e\u5e93\u4fe1\u606f<\/strong><\/div>\n

\"\"<\/p>\n

\u90e8\u7f72\u5b8c\u6210<\/strong><\/div>\n

\"\"<\/p>\n

\u6d4b\u8bd5<\/strong><\/div>\n

\"\"<\/p>\n

\"\"
\n\u4e0a\u4f20\u6210\u529f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

[root@chao tools]# wget https:\/\/download.owncloud.org\/c […]<\/p>\n","protected":false},"author":1469,"featured_media":193076,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-193050","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/193050","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1469"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=193050"}],"version-history":[{"count":11,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/193050\/revisions"}],"predecessor-version":[{"id":193107,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/193050\/revisions\/193107"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/193076"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=193050"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=193050"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=193050"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}