centos7部署seafile

本文档详细介绍了在CentOS7上安装和配置Seafile以及MariaDB的步骤,包括安装wget和vim,关闭防火墙,安装并启动MariaDB,执行安全设置,创建远程连接的root用户,以及通过pip使用阿里云镜像安装Python包。最后提到了清理缓存的命令。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一、准备工作
 1.1 安装wget、vim

yum install -y wget vim

 

 1.2 关闭防火墙

systemctl stop firewalld
systemctl disable firewalld

二、部署seafile
 2.1 安装mysql/mariadb
 # 选择安装mariadb

yum -y install mariadb mariadb-server

 

 # 启动、开机启动

systemctl start mariadb
systemctl enable mariadb

 

 # 安全设置

mysql_secure_installation

 # 根据下面的内容进行设置

复制代码

复制代码

# 第一次运行密码为空,回车。
Enter current password for root (enter for none):
    
# 需要设置root密码,输入y后回车。
Set root password? [Y/n] y
接着输入两次新密码。
    
# 是否删除匿名用户,回车。
Remove anonymous users? [Y/n]
        
# 是否禁止root远程登录,回车。
Disallow root login remotely? [Y/n]
        
# 是否删除test数据库,回车。
Remove test database and access to it? [Y/n]
    
# 是否重新加载权限表,回车。
Reload privilege tables now? [Y/n]

复制代码

复制代码

 

 # 使用root账户登录mariadb

mysql -uroot -p

 # 能连得进去说明刚才的设置已经生效

 

 # 退出mariadb 

exit

 

PS.如果需要远程连接,可以用下面的内容设置。 

# 允许任意ip使用root远程连接
create user 'root'@'%' identified by 'root远程登录的密码';
# 添加权限给该root
grant all privileges on *.* to 'root'@'%' identified by 'root远程登录的密码';
# 配置立即生效
flush privileges;

Python的pip安装源切换为国内阿里云镜像

pip install xxx -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

清理缓存

rm -rf  /tmp/seahub_cache/*

 https://www.cnblogs.com/witz/p/13048203.html

https://www.cnblogs.com/flyflit/p/13060461.html

nginx:https://www.cnblogs.com/boonya/p/7907999.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值