mysql 部署在私有云_在Linux中的MySQL下部署seafile私有云服务

版权声明:转载请通知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

阅读更多

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值