这里讲下Docker和NPM两种安装教程,任选一种即可

一、NPM安装
Github地址:https://github.com/denghongcai/forsaken-mail

1、安装NPM

Debian/Ubuntu系统

curl -sL https://deb.nodesource.com/setup_10.x | bash -
apt-get install -y nodejs git screen

Centos系统

curl -sL https://rpm.nodesource.com/setup_10.x | bash -
yum install nodejs git screen -y
2、安装Forsaken Mail

git clone https://github.com/denghongcai/forsaken-mail.git
cd forsaken-mail

安装Forsaken Mail

npm install

后台运行Forsaken Mail

screen -S forsakenmail
npm start
最后按Ctrl+A,再按D键返回主界面,然后打开http//ip:3000就可以查看Forsaken Mail邮箱界面了,如果你打不开界面,可能还需要开启防火墙端口。注意:一定要开启25和3000端口。检测端口是否打开请参考这篇文 http://blog.freenn.com/jsfx/7.html

二、Docker安装
1、安装Docker

CentOS 6

rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum update -y
yum -y install docker-io
service docker start
chkconfig docker on

CentOS 7、Debian、Ubuntu

curl -sSL https://get.docker.com/ | sh
systemctl start docker
systemctl enable docker
2、安装Forsaken Mail

docker run --name forsaken-mail -d -p 25:25 -p 3000:3000 denghongcai/forsaken-mail
安装成功后打开http//ip:3000就可以了,如果打不开界面请参考NPM安装步骤。

标签: none

添加新评论