声明我自己写的,不好的话 不要拍砖哦………… 刚入职的学弟学妹,做linux开发的,也许会用到…… 1、 服务器配置: 内存 :2G 硬盘:500G Ip:192.168.10.51 2、 项目管理软件相关: 管理软件采用最新的禅道3.1版本(注意有个bug需要修改),使用时注意apache、 mysql 服务必须打开。 3、 虚拟机相关: 虚拟机版本:vmware workstation 8.0.3 Ubuntu :11.10 Smb共享目录:/home/cypt/share Linux 登录名及密码:自己设置的 Linux ip :192.168.10.54 4、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 /mnt tftp 安装与配置: $sudo apt-get install tftp tftpd $cd /;mkdir tftpboot;chmod 777 tftpboot $sudo vim /etc/xinetd.d/tftp 添加: service tftp { socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -s /tftpboot –c disable = no per_source = 11 cps = 100 2 flags = 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 将下列代码新增到文件的最后面 [share] 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 )等服务搭建完成; |
[技术| 编程·课件·Linux] 项目管理软件(禅道)以及linux(nfs smb tftp)在服务器 ...
ustccpc
· 发布于 2012-06-08 10:39
· 1690 次阅读
转载文章时务必注明原作者及原始链接,并注明「发表于 软院网 RuanYuan.Net 」,并不得对作品进行修改。