(三)安装seafile服务器

一、一键快速安装

两条命令完成安装:

[root@localhost package]# wget https://raw.githubusercontent.com/helloxz/seafile/master/install_seafile.sh

[root@localhost package]# chmod +x install_seafile.sh && ./install_seafile.sh

 一键安装中会有对话的形式设置管理员名称和密码等,以及访问地址名称,如下可以看到打印信息,seafile默认用到的两个端口是8000  8082  注意防火墙设置

[root@localhost package]# wget https://raw.githubusercontent.com/helloxz/seafile/master/install_seafile.sh
--2022-09-14 21:42:43--  https://raw.githubusercontent.com/helloxz/seafile/master/install_seafile.sh
正在解析主机 raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.109.133, 185.199.110.133, 185.199.108.133, ...
正在连接 raw.githubusercontent.com (raw.githubusercontent.com)|185.199.109.133|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:2537 (2.5K) [text/plain]
正在保存至: “install_seafile.sh”

100%[=========================================================================================>] 2,537       --.-K/s 用时 0s      

2022-09-14 21:42:44 (24.0 MB/s) - 已保存 “install_seafile.sh” [2537/2537])

[root@localhost package]# ls
install_seafile.sh  seafile-server_9.0.8_x86-64.tar.gz
[root@localhost package]# chmod +x install_seafile.sh && ./install_seafile.sh
##########	欢迎使用Seafile一键安装脚本^_^	##########
1.安装Seafile
2.卸载Seafile
3.退出
请输入选项:(1.2.3):1

已加载插件:fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.ustc.edu.cn
软件包 python-setuptools-0.9.8-7.el7.noarch 已安装并且是最新版本
软件包 python-pillow-2.0.0-23.gitd1c6db8.el7_9.x86_64 已安装并且是最新版本
软件包 python-ldap-2.4.15-2.el7.x86_64 已安装并且是最新版本
软件包 MySQL-python-1.2.5-1.el7.x86_64 已安装并且是最新版本
软件包 python-memcached-1.48-4.el7.noarch 已安装并且是最新版本
软件包 python-urllib3-1.10.2-7.el7.noarch 已安装并且是最新版本
无须任何处理
-----------------------------------------------------------------
This script will guide you to config and setup your seafile server.

Make sure you have read seafile server manual at 

	https://github.com/haiwen/seafile/wiki

Note: This script will guide your to setup seafile server using sqlite3,
which may have problems if your disk is on a NFS/CIFS/USB.
In these cases, we sugguest you setup seafile server using MySQL.

Press [ENTER] to continue
-----------------------------------------------------------------


Checking packages needed by seafile ...

Checking python on this machine ...
Find python: python2.7

  Checking python module: setuptools ... Done.
  Checking python module: python-imaging ... Done.
  Checking python module: python-sqlite3 ... Done.

Checking for sqlite3 ...Done.

Checking Done.


What would you like to use as the name of this seafile server?
Your seafile users will be able to see the name in their seafile client.
You can use a-z, A-Z, 0-9, _ and -, and the length should be 3 ~ 15
[server name]: admin

What is the ip or domain of this server?
For example, www.mycompany.com, or, 192.168.1.101

[This server's ip or domain]: 172.16.14.7

Where would you like to store your seafile data? 
Note: Please use a volume with enough free space.
[default: /home/MyCloud/seafile-data ] 

What tcp port do you want to use for seafile fileserver?
8082 is the recommended port.
[default: 8082 ] 


This is your config information:

server name:        admin
server ip/domain:   172.16.14.7
seafile data dir:   /home/MyCloud/seafile-data
fileserver port:    8082

If you are OK with the configuration, press [ENTER] to continue.

Generating ccnet configuration in /home/MyCloud/ccnet...

done
Successly create configuration dir /home/MyCloud/ccnet.

Generating seafile configuration in /home/MyCloud/seafile-data ...

Done.

-----------------------------------------------------------------
Seahub is the web interface for seafile server.
Now let's setup seahub configuration. Press [ENTER] to continue
-----------------------------------------------------------------


Creating seahub database now, it may take one minute, please wait... 


Done.

creating seafile-server-latest symbolic link ... done


-----------------------------------------------------------------
Your seafile server configuration has been completed successfully.
-----------------------------------------------------------------

run seafile server:     ./seafile.sh { start | stop | restart }
run seahub  server:     ./seahub.sh  { start  | stop | restart  }

-----------------------------------------------------------------
If the server is behind a firewall, remember to open these tcp ports:
-----------------------------------------------------------------

port of seafile fileserver:   8082
port of seahub:               8000

When problems occur, refer to

      https://github.com/haiwen/seafile/wiki

for more information.


[09/14/22 21:49:07] ../common/session.c(132): using config file /home/MyCloud/conf/ccnet.conf
Starting seafile server, please wait ...
Seafile server started

Done.

LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 ...

----------------------------------------
It's the first time you start the seafile server. Now let's create the admin account
----------------------------------------

What is the email for the admin account?
[ admin email ] [email protected]

What is the password for the admin account?
[ admin password ] 

Enter the password again:
[ admin password again ] 



----------------------------------------
Successfully created seafile admin
----------------------------------------




Seahub is started

Done.

Warning: ALREADY_ENABLED: 8000:tcp
success
Warning: ALREADY_ENABLED: 8082:tcp
success
success
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   146    0   146    0     0     69      0 --:--:--  0:00:02 --:--:--    69
------------------------------------------------------
恭喜,安装完成。请访问:http://
403 Forbidden

403 Forbidden


nginx
:8000l> 帮助文档请访问:https://www.xiaoz.me/archives/8480 阿里云用户请注意放行端口(8000/8082):https://www.xiaoz.me/archives/9310 ------------------------------------------------------

安装完成。

二、测试

(三)安装seafile服务器_第1张图片

 (三)安装seafile服务器_第2张图片

(三)安装seafile服务器_第3张图片 

 (三)安装seafile服务器_第4张图片

 能打开网页,能正常上传下载文件,说明ok

你可能感兴趣的:(开发工具,服务器,数据库,mysql)