ustccpc 发表于 2012-6-8 10:39:27

项目管理软件(禅道)以及linux(nfs smb tftp)在服务器上搭建介绍

声明我自己写的,不好的话 不要拍砖哦…………
刚入职的学弟学妹,做linux开发的,也许会用到……


1、 服务器配置:内存 :2G硬盘:500GIp:192.168.10.512、 项目管理软件相关:管理软件采用最新的禅道3.1版本(注意有个bug需要修改),使用时注意apache、 mysql 服务必须打开。3、 虚拟机相关:虚拟机版本:vmware workstation 8.0.3Ubuntu :11.10Smb共享目录:/home/cypt/shareLinux 登录名及密码:自己设置的
Linuxip :192.168.10.544、windows 访问服务器方法:   访问smb共享目录: \\192.168.10.54   访问项目管理软件:192.168.10.51(若出现guest 无权访问,选择重新登录即可)   远程登录服务器:打开远程连接后,用户名:Administrator 密码:pc密码
4、 linux端配置详细过程nfs安装与配置:$sudo apt-get install nfs-kernel-server$cd /;mkdir nfsboot ;chmod 777 nfsboot$sudo vim /etc/exports添加: /nfsboot*(rw,sync,no_root_squash)$sudo /etc/init.d/nfs-kernel-server restart测试:mount –t nfs linux ip:/nfsboot /mnttftp 安装与配置:$sudo apt-get install tftp tftpd$cd /;mkdir tftpboot;chmod 777 tftpboot$sudo vim /etc/xinetd.d/tftp添加:service tftp
{socket_type = dgram
protocol = udpwait = yesuser = rootserver = /usr/sbin/in.tftpdserver_args = -s /tftpboot –cdisable = noper_source = 11cps = 100 2flags = IPv4
}$ sudo /etc/init.d/xinetd reload//修改配置后都应该有这一句
$ sudo /etc/init.d/xinetd restart 可通过 tftp 的get put 命令登录本机测试 ; Smb安装与配置:   $sudo apt-get install samba
$sudo apt-get install smbfs   假如我们共享的目录是/home/cypt/share$mkdir /home/cypt/share$chmod 777 /home/cypt/share$sudo cp /etc/samba/smb.conf/etc/samba/smb.conf.bak
$sudo vim /etc/samba/smb.conf搜索:   ; security = user   改为:   security = user
username map = /etc/samba/smbusers

将下列代码新增到文件的最后面
comment = Shared Folder with username and password
path = /home/cypt/share
public = yes
writable = yes
valid users = cypt
create mask = 0700
directory mask = 0700
force user = nobody
force group = nogroup
available = yes
browseable = yes

然后找到[global],更改以下代码: workgroup = WORKGROUP
display charset = UTF-8
unix charset = UTF-8
dos charset = cp936
新增网络使用者的帐号: sudo smbpasswd -a cypt
然后: $sudo vim/etc/samba/smbusers增加cypt = "network username"最后:sudo /etc/init.d/smbd restart 至此:服务器上项目管理软件、linux(nfs tftp smb )等服务搭建完成;

fancyboy 发表于 2012-6-8 10:49:52

顶!技术贴~~有贴图就更好了~~~ps:用ubuntu作为服务器操作系统吗?

ustccpc 发表于 2012-6-8 10:53:55

其实是 windows +虚拟机,虚拟机里ubuntu

Castelo 发表于 2012-6-17 13:54:21

恩。不错。我有 鲁班图 最新版。不过挺大的。。。
页: [1]
查看完整版本: 项目管理软件(禅道)以及linux(nfs smb tftp)在服务器上搭建介绍