Ubuntu Server 安装Domino server 9 前言
在Linux系统上安装Domino Server是一个小小的挑战,其实并没有大家想想的复杂,既然是商业性的软件,OEM早就为我们解决了安装的难度,还有就是选择自己熟悉的Linux发行版,各个发行版操作上还是有一定的区别的,这里选择最新的Ubuntu Server 13.04,尽量在Server版本的Ubuntu上安装,虽然说Desktop版本也可以。
安装 Unbuntu server 13.4
下载Ubuntu server镜像
http://releases.ubuntu.mirrors.uk2.net//raring/ubuntu-13.04-server-amd64.iso 选择国内的镜像源
接下来就是安装了,安装也就是step by step,接下来用简单的文字和截图说明
选择语言
选择安装的类型
MAAS – Metal as a Service:他大概的功能是进行大规模服务和服务器部署,使得服务部署极具扩展性,在这里不需要它,就安装Ubuntu服务器版
确认安装的语言
确认键盘配置
按照提示输入所示字母
如出现下图,选择是,还会有几次敲键盘的机会,总之有点儿绕
默认即可
因为我环境内有DHCP,所以提示以下选择
如果没有DHCP服务这儿显示失败,继续选择 手工 填写吧
网关:
DNS服务器
主机名
域名(可填可不填)
管理员的用户名和口令,口令还会被要求确认一次
确认主目录是否要加密
时钟设置;选择“否”,因为当前提示时区为:ASLA/HARBIN
磁盘分区,默认
确认将配置写入磁盘
进入安装过程
询问是否设置http代理,选择不使用,不必填写
不选择自动更新
选择要安装的服务,只选择openssh就可以
将grub安装mbr上
安装后重启
至此Ubuntu server 13.04安装完毕
需要修改以下设置(日常命令)
从 用户切换至root sudu -s
查看ip地址:ifconfig ip address show
查看网关: route –n ip route show
添加上传工具:apt-get install lrzsz
可以通过ftp、mount进行文件上传
Netstat –anlpt | grep 110 查看110端口是否使用
‘/’’’’类似于windows中 netstat –an | find “110”
Ctrl+l 清屏
yy –复制 p 粘贴
修改IP
Vim /etc/network/network/interface
Iface etho inet static
address 192.168.220.100
gateway 192.168.220.1
netmask 255.255.255.0
network 192.168.220.0
broadcast 192.168.220.255
修改DNS
Sudo vim /etc/resolv.conf
service networking restart 重启网卡
如果在真实环境内不建议关闭防火墙,我们需要设置防火墙的入站规则
iptables -I INPUT -p tcp -m multiport --dport 25,80,110,143,443,995,465,993 -m state --state new --syn -j ACCEPT
iptables -L -v -n
/etc/init.d/iptables save 为domino 9配置Ubuntu
使用ssh工具,putty或secureCRT连接到服务器
首先确认服务器的smtp,pop,imap,http服务没有被占用,当然我们在安装服务器的时候没有选择安装其它的服务,可以省略
编辑 /etc/hosts文件
添加domino1.contoso.com domino1 domino1/contoso 到 172.16.20.50的解析
Sudo vim /etc/hosts下的文件时,进去后无法写入东西,需要按键“i”切换成编辑模式,编辑完成后按键“esc”退出编辑模式在做保存
:wq
保存并退出
如果是环境内第一台Linux for domino server的话需要单独创建notes用户及密码;
如果是附加服务器的话跳过哦此步骤
为 Domino 创建notes用户并设置密码
修改最大句柄数,即domino可以打开的文件数
在末尾处添加两行
notes soft nofile 30000
notes hard nofile 49152
注:如果下载不成功,通过其他电脑打开后,粘贴内容即可:
#!/bin/sh
#
#
# Lotus Domino rc-script /etc/init.d/domino
# For Debian GNU/Linux, but also usable on other distributions.
#
# Usage:
# /etc/init.d/domino {start|stop|restart|kill|help}
#
# Written by Jens Vogel in 2004 - 2007
# Inspired by written IBM documentation
#
# Modified by Danilo Dellaquila in 2007
# K-Gigas Computers S.L. <ddellaquila@gmail.com>
# Thanks Jens for your script.
# I've just put some chkconfig stuff,
# and added the Spanish language support.
#
#############################################################################
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
#############################################################################
#
# chkconfig: 345 95 5
# description: This script is used to start the domino
# server as a background process.
#
# http://www.desktux.nl/
# desktux@desktux.nl
# Variables
###########
# Remember to adapt everyting to your installation!
# The values below work only on default installations!
domino_user="notes"
domino_group="notes"
data_dir="/local/notesdata"
if [ -d "/opt/lotus/bin" ]; then
bin_dir="/opt/lotus/bin" # For Domino 6.5.x or older
elif [ -d "/opt/ibm/lotus/bin" ]; then
bin_dir="/opt/ibm/lotus/bin" # For Domino 7
else
bin_dir="/usr/local/bin" # If your bin_dir is somwhere else
fi
# Uncomment just one of the following
# NOTE: if you use a logfile and wish to rotate the logfile you *must* use the
# logrotate-option "copytruncate" or stop the server before rotating!
output="/dev/tty12"
#output="/var/log/domino.log"
# The password file must exist and have the permissions
# 0400 $domino_user:$domino_group!
# If you have no server password just touch an empty file.
passwd_file="${data_dir}/.domino.pwd"
# Thanks to Giorgio Fedon for pointing this out:
# In case you didn't set up your language environment correctly and have
# problems with characters specific to your language, uncomment one of the
# following or enter your own value.
#LANG="de_DE@euro"
#LANG="fr_FR@euro"
#LANG="it_IT@euro"
#LANG="nl_NL@euro"
#LANG="es_ES@euro"
export LANG
# See how we are called and take action
#######################################
function start() {
# Check for the password file
if [ ! -f $passwd_file ]; then
echo -e "\aFatal error: no password file ${passwd_file} found!"
exit 1
fi
# Just preventive: correct the rights
chmod 0400 $passwd_file
chown $domino_user:$domino_group $passwd_file
# Start the server
echo -n "Starting Domino server: "
su - $domino_user -c "cd ${data_dir}; cat ${passwd_file}|${bin_dir}/server" >> $output 2>&1 &
echo "done. Output is redirected to ${output}."
}
function stop() {
# Stop the server
echo "Stopping Domino server:"
su - $domino_user -c "cd ${data_dir}; ${bin_dir}/server -q"
echo "Done."
}
case $1 in
start)
start;;
stop)
stop;;
restart)
stop
start
;;
kill)
# Kill the server if stopping soesn't work.
# Also write an NSD file.
echo -n "Killing Domino server: "
su - $domino_user -c "cd ${data_dir}; ${bin_dir}/nsd -kill"
echo "Done."
;;
help)
# Give help for those in need...
echo -e "\nLotus Domino rc-script"
echo -e "/etc/init.d/domino {start|stop|restart|kill|help}\n"
echo "Options:"
echo "--------"
echo -e "start\tStarts the Domino Server."
echo -e "stop\tStops the Domino Server."
echo -e "restart\tRestarts the Domino Server."
echo -e "kill\tKills the Domino Server if 'stop' doesn't work.\n\tAlso writes a nsd logfile in ${data_dir}."
echo -e "help\tShow this message.\n"
echo -e "Remember to adapt the variables to your installation if you didn't run a default\nDomino installation!\n"
;;
*)
# Small usage instructions
echo "Usage: /etc/init.d/domino {start|stop|restart|kill|help}"
;;
esac
exit 0
修改脚本,修改成如下所示,
将/bin/sh 改为 /bin/bash