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


1、 服务器配置:
内存 2G
硬盘:500G
Ip192.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
4windows 访问服务器方法
   访问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 )等服务搭建完成;

评分

参与人数 1学分 +9 收起 理由
sissi + 9 赞一个!

查看全部评分

共收到 3 条回复
fancyboy · #2 · 2012-6-8 10:49:52  回复 支持 反对
顶!技术贴~~有贴图就更好了~~~ps:用ubuntu作为服务器操作系统吗?
ustccpc · #3 · 2012-6-8 10:53:55  回复 支持 反对
其实是 windows +虚拟机,虚拟机里ubuntu
Castelo · #4 · 2012-6-17 13:54:21  回复 支持 反对
恩。不错。我有 鲁班图 最新版。不过挺大的。。。
回帖
B Color Image Link Quote Code Smilies
Command + Enter
快速回复 返回顶部 返回列表