RainLoop Webmail---基于WEB的电子邮件客户端

在Linux中安装RainLoop Webmail

第1步: 安装Apache,Mysql和Php

安装Apache

# yum install httpd

配置文件:/etc/httpd/conf/httpd.conf

启动httpd服务
# systemctl start httpd
查看状态
# systemctl status httpd

安装Mysql
mysql和apache最好是首先进行安装的,因为在配置php的时候需要与mysql和apache进行关联配置和测试

首先下载mysql-sever文件,因为博主linux环境是CentOS版本,yum源中貌似没有正常安装mysql时的mysql-sever文件,需要去官网上下载

下载mysql-server文件
#  wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
安装mysql-server文件
# rpm -ivh mysql-community-release-el7-5.noarch.rpm

安装mysql

# yum install mysql-community-server

启动mysql

# systemctl start mysqld

初步安装的mysql是没有密码的,用户名默认是root。所以我们需要修改密码,用mysql命令行进行修改

进入mysql命令行
# mysql -uroot
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 474801
Server version: 5.6.36 MySQL Community Server (GPL)
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> 
使用命令进行密码修改
mysql> set password for 'root'@'localhost' = password('要修改的密码');
Query OK, 0 rows affected (0.06 sec)

设置所有主机可以访问
mysql> update user set host='%' where user='root' and host='localhost';

使配置立即生效
mysql> flush privileges;

扩展:

正确的添加用户方法:

GRANT USAGE ON *.* TO 'haha'@'localhost' IDENTIFIED BY '123456' WITH GRANT OPTION;

用户:haha,密码:123456,这样就添加了一个新的用户。

安装PHP

# yum install php

直接一路安装,安装完成之后再次重启httpd服务

# systemctl restart httpd

重启之后我们进行测试PHP相关信息,我们新建一个PHP界面进行测试

在apache默认页面路径/var/www/html下新建一个test.php页面,添加代码

<?php
 phpinfo();
?>

访问URL进行测试:服务器的ip地址/test.php

关联Php和Mysql

安装相关模块

# yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml  php-xmlrpc

安装完成,重启mysqld和httpd,重新访问服务器的ip地址/test.php,我们会发现已经多了Mysql的相关信息。

扩展
1.Mysql yum安装默认文件夹及相关命令

数据库目录:/var/lib/mysql/
配置文件:/usr/share/mysql (mysql.server命令及配置文件)
相关命令:/usr/bin  (mysqladmin  mysqldump等命令)
my.cnf    :/etc/my.cnf

启动脚本:/etc/rc.d/init.d/   (启动脚本文件mysql的目录)
启动命令:systemctl start mysqld
停止命令:systemctl stop mysqld
运行状态:systemctl status mysqld

2.Apache

配置文件路径:/etc/httpd/conf/httpd.conf
启动命令:systemctl start httpd
停止命令:systemctl sop httpd
运行状态:systemctl status httpd

3.Php

php的默认页面路径:/var/www/html

第2步:下载并安装RainLoop Webmail
1.去官方网站RainLoop下载

http://rainloop.net/downloads/

2.使用wget命令下载最新的源码包并解压到Apache Web的目录下。
例如在/var/www/html/rainloop

# mkdir /var/www/html/rainloop		
# cd /var/www/html/rainloop
# wget http://repository.rainloop.net/v1/rainloop-1.6.3.715-f96ed936916b7f3d9039819323c591b9.zip
# unzip rainloop-1.6.3.715-f96ed936916b7f3d9039819323c591b9.zip
# rm rainloop-*.zip

第3步:配置权限

# cd  /var/www/html/rainloop
# find . -type d -exec chmod 755 {} \;
# find . -type f -exec chmod 644 {} \;

# chown -R apache:apache .

注意需要重启httpd服务

systemctl restart mysqld

第4步:通过管理界面配置RainLoop
网址 :HTTP://你的IP地址的/ rainloop /管理
用户 :admin
密码 :12345

联系作者
关注作者公众号,与作者联系

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值