From ada95ccbefae7579a6aa48e9b283871144fff4e0 Mon Sep 17 00:00:00 2001 From: Hulk Date: Wed, 13 Feb 2019 15:37:49 +0800 Subject: [PATCH] suport the ubuntu 18.04 --- README.md | 40 +++++++++++-------- ...4-http => seafile-server-ubuntu-amd64-http | 0 2 files changed, 23 insertions(+), 17 deletions(-) rename seafile-server-ubuntu-16-04-amd64-http => seafile-server-ubuntu-amd64-http (100%) diff --git a/README.md b/README.md index e1d863c..24f2d40 100644 --- a/README.md +++ b/README.md @@ -4,38 +4,44 @@ 这里的安装脚本可以帮助您快速的安装好 Seafile 服务器,并配置好 MariaDB, Memcached, WebDAV, Ngnix 和开机自动启动脚本。 -### 使用步骤 +## 使用步骤 -安装干净的 16.04 或 CentOS 7 系统,并**做好镜像** (如果安装失败需要还原到镜像)。 +安装干净的 Ubuntu 16.04/18.04 或 CentOS 7 系统,并**做好镜像** (如果安装失败需要还原到镜像)。 切换成 root 账号 (sudo -i) -获取安装脚本 +### 获取安装脚本(适用于 Seafile 6.0.0 及以上版本) -Ubuntu 16.04(适用于 6.0.0 及以上版本): +Ubuntu 16.04/18.04 (64bit): ``` -wget https://raw.githubusercontent.com/haiwen/seafile-server-installer-cn/master/seafile-server-ubuntu-16-04-amd64-http +wget https://raw.githubusercontent.com/haiwen/seafile-server-installer-cn/master/seafile-server-ubuntu-amd64-http ``` -CentOS 7: +CentOS 7 (64bit): ``` wget https://raw.githubusercontent.com/haiwen/seafile-server-installer-cn/master/seafile-server-centos-7-amd64-http ``` -运行安装脚本并指定要安装的版本 (6.0.13) +### 运行安装脚本并指定要安装的版本 (例如 6.0.13) +Ubuntu 16.04/18.04 (64bit): ``` -bash seafile-server-ubuntu-16-04-amd64-http 6.0.13 +bash seafile-server-ubuntu-amd64-http 6.0.13 ``` -脚本会让你选择要安装的版本, 按照提示进行选择即可: +CentOS 7 (64bit): +``` +bash seafile-server-centos-7-amd64-http 6.0.13 +``` + +脚本会让您选择要安装的版本, 按照提示进行选择即可: * 如果要安装专业版, 需要先将下载好的专业版的包 `seafile-pro-server_6.0.13_x86-64.tar.gz` 放到 `/opt/` 目录下 -* 如果是安装开源版,安装脚本在执行过程中会检查**/opt**目录下是否有指定版本号的安装包,如果存在则会安装此包,否则会从 Seafile 网站下载。所以,为了避免因下载失败而导致安装中断,您可以提前下载好安装包放到**/opt/**目录下。 +* 如果是安装开源版,安装脚本在执行过程中会检查 `/opt`目录下是否有指定版本号的安装包,如果存在则会安装此包,否则会从 Seafile 网站下载。所以,为了避免因下载失败而导致安装中断,您可以提前下载好安装包放到`/opt/`目录下。 -该脚本运行完后会在命令行中打印配置信息和管理员账号密码,请仔细阅读。(你也可以查看安装日志 /opt/seafile/aio_seafile-server.log),MySQL 密码在 `/root/.my.cnf` 中。 +该脚本运行完后会在命令行中打印配置信息和管理员账号密码,请仔细阅读。(您也可以查看安装日志`/opt/seafile/aio_seafile-server.log`),MySQL 的 root 用户密码存储在 `/root/.my.cnf` 中;MySQL 的 seafile 用户密码存储在 `/opt/seafile.my.cnf` 中。 -#### 通过 Web UI 对服务器进行配置 +### 通过 Web UI 对服务器进行配置 安装完成后,您需要通过 Web UI 服务器进行基本的配置,以便能正常的从网页端进行文件的上传和下载: @@ -62,7 +68,7 @@ bash seafile-server-ubuntu-16-04-amd64-http 6.0.13 自动安装脚本会在系统中安装开机自动启动脚本。您也可以使用该脚本来关闭/启动 Seafile 服务,命令如下: -Ubuntu 16.04: +Ubuntu 16.04/18.04: ``` service seafile-server stop service seafile-server start @@ -70,11 +76,11 @@ service seafile-server start CentOS 7: ``` -service seafile stop -service seahub stop +systemctl stop seafile +systemctl stop seahub -service seafile start -service seahub start +systemctl start seafile +systemctl start seahub ``` ## 其他高级配置 diff --git a/seafile-server-ubuntu-16-04-amd64-http b/seafile-server-ubuntu-amd64-http similarity index 100% rename from seafile-server-ubuntu-16-04-amd64-http rename to seafile-server-ubuntu-amd64-http