电脑技术学习

在FreeBSD上组建ISP级的邮件系统

dn001

  2、如果你想知道这个软件应该在/etc/rc.conf加入什么内容,打开/usr/local/etc/rc.d 目录,找到此软件的启动脚本。然后打开文件,如果有详细的说明。

  %/usr/local/etc/rc.d/mysql-server.sh start

  Starting mysql.

  如何去检查一个服务是否正常启动:1、通过ps查看进程,2、检查所打开的端口。

  %ps aux|grep mysql

  mysql 94899 0.2 0.5 1644 1240 p0 S 3:52PM 0:00.07 /bin/sh /usr/local/bin/mysqld_safe --

  mysql 94919 0.0 10.8 55564 27428 p0 S 3:52PM 0:01.54 /usr/local/libexec/mysqld --defaults-

  %

  %netstat -an|grep 3306

  tcp4 0 0 *.3306 *.* LISTEN

  MySQL安装时,服务器的密码为空,建议你装好系统后,第一时间去更改密码。

  %/usr/local/bin/mysqladmin -u root -p passWord 你的新密码

  Enter password:

  如果你服务器只供本站内部使用建议在 my.cnf 里加入下面内容,以增加服务器的安全性。

  [mysqld]

  bind_address=127.0.0.1

  四、安装Apache

  1、安装apache server

  作为网络的今天apache web服务器已经是街知港闻了。

  %cd /usr/ports/www/apache22/

  %make install clean

  在/etc/rc.conf 中加入:

  apache22_enable="YES"

  如果启动时出现httpd: Could not reliably determine the server's fully qualifIEd domain name, using mail.sharesky.cn for ServerName 的错误,在/usr/local/etc/apache22/httpd.conf 约第144行的位置加入下面的内容。

  ServerName mail.extmail.org

  启动apahce

  %/usr/local/etc/rc.d/apache22.sh start

标签: