版权声明:转载请通知https://blog.csdn.net/qq_41674452/article/details/85040089
实验环境:
一台安装了MySQL服务的Centos7;
准备软件:seafile-server_6.3.4_x86-64.tar
准备工作:
[root@localhost ~]# mysqladmin -uroot password 'password'#修改mysql的root密码
[root@localhost ~]# mysql -uroot -p
mysql>grant all privileges on *.* to 'seafile'@'%' identified by 'seafile';#给seafile授权对MySQL进行操作
mysql>exit
[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost ~]# rm -rf *
[root@localhost ~]# vim local.repo#配置本地yum源
[local]
name=local
gpgcheck=0
enabled=1
baseurl=file:///mnt
:wq!
[root@localhost ~]# mount /dev/cdrom /mnt
[root@localhost ~]# yum -y install python-imaging MySQL-python python-memcached python-ldap python-urllib3#安装依赖包
开始安装:
[root@localhost ~]# mkdir -p /data/benet#创建工作目录
[root@localhost ~]# cd /data/benet
[root@localhost benet]# tar -zxvf seafile-server_6.3.4_x86-64.tar.gz#解压进行安装
[root@localhost benet]# cd seafile-server-6.3.4/
[root@localhost seafile-server-6.3.4]# ./setup-seafile-mysql.sh
[ server name ] benet#服务器名称
[ This server's ip or domain ] 192.168.43.193#该服务器的IP或者域名
[ default "/data/benet/seafile-data" ] #用户文件存放位置(默认为"/data/benet/seafile-data")
[ default "8082" ] #服务端口(默认为"8082")
[ 1 or 2 ] 1#1为创建新的数据库;2为使用已有的数据库
[ default "localhost" ] #mysql的地址“localhost”为本机
[ default "3306" ] #mysql的端口“3306”为mysql端口号
[ root password ] password#输入mysql中root用户的密码,此密码为前面设置的
[ default "seafile" ]#创建新的用户seafile为该服务使用(默认为"seafile"名)
[ password for seafile ] seafile#给该用户加密码
#剩下的一路回车即可
[root@localhost seafile-server-6.3.4]# ./seafile.sh start#启动服务
[root@localhost seafile-server-6.3.4]# ./seahub.sh start 8000#创建管理员用户
[ admin email ] wjy@benet.com#创建管理员账号
[ admin password ] wjy123#设置登录密码
[ admin password again] wjy123
[root@localhost ~]# netstat tlunp | grep 8000#过滤端口号
测试:
用浏览器访问http://IP:8000
阅读更多