标签:.sh 远程 网站 domain let wget current 直接 允许
环境:CentOS Linux release 7.2.1511 (Core)yum install -y wget vim
1.2 安装epel、Nux Dextop
1.3 防火墙上放行8000(seahub服务,seahub 是 Seafile 服务器的 Web 端),8082端口(seafile fileserver服务, 负责为 Seahub 处理文件的上传和下载)。
firewall-cmd --zone=public --add-port=8000/tcp --permanent
firewall-cmd --zone=public --add-port=8082/tcp --permanent
firewall-cmd --reload #重启firewall
查看已经开放的端口:
firewall-cmd --list-ports
rpm -ivh http://mirrors.ustc.edu.cn/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm
rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
二、部署seafile
2.1 安装mysql/mariadb
yum -y install mariadb mariadb-server
systemctl start mariadb
systemctl enable mariadb
mysql_secure_installation
Enter current password for root (enter for none):
Set root password? [Y/n] y
接着输入两次新密码。
Remove anonymous users? [Y/n]
Disallow root login remotely? [Y/n]
Remove test database and access to it? [Y/n]
Reload privilege tables now? [Y/n]
PS.如果需要远程连接,可以用下面的内容设置。
create user ‘root‘@‘%‘ identified by ‘root远程登录的密码‘;
grant all privileges on . to ‘root‘@‘%‘ identified by ‘root远程登录的密码‘;
flush privileges;
2.2 安装依赖项
yum install -y python-memcached \
python-ldap \
python-urllib3 \
python-imaging \
MySQL-python \
python-distribute \
ffmpeg \
ffmpeg-devel
2.3 安装seafile
cd
wget http://seafile-downloads.oss-cn-shanghai.aliyuncs.com/seafile-server_6.2.5_x86-64.tar.gz
tar zxf seafile-server_6.2.5_x86-64.tar.gz
cd seafile-server-*
./setup-seafile-mysql.sh
What is the name of the server? It will be displayed on the client.
What is the ip or domain of the server?
For example: www.mycompany.com, 192.168.1.101
[ This server‘s ip or domain ] 192.168.16.203
Where do you want to put your seafile data?
Please use a volume with enough free space
[ default "/root/seafile-data" ]
Which port do you want to use for the seafile fileserver?
[ default "8082" ]
[1] Create new ccnet/seafile/seahub databases
[2] Use existing ccnet/seafile/seahub databases
[ 1 or 2 ] 1
What is the host of mysql server?
[ default "localhost" ]
What is the port of mysql server?
[ default "3306" ]
Enter the name for mysql user of seafile. It would be created if not exists.
[ default "seafile" ]
Enter the password for mysql user "seafile":
[ password for seafile ]
Enter the database name for ccnet-server:
[ default "ccnet-db" ]
Enter the database name for seafile-server:
[ default "seafile-db" ]
Enter the database name for seahub:
[ default "seahub-db" ]
2.4 启动seafile、seahub
./seafile.sh start
./seahub.sh start 8000
PS.第一次启动 seahub 时,seahub.sh脚本会提示创建seafile管理员帐号(邮箱名)。
2.5 访问seafile
浏览器访问http://部署seafile的虚拟机IP,使用刚才创建的管理员账号登录。
标签:.sh 远程 网站 domain let wget current 直接 允许
原文地址:http://blog.51cto.com/11403002/2330269