一個SMB和一個WEB伺服器的問題,望達人指點
SMB的問題是:怎樣才能使linux的SMB伺服器和win的機器通過主機名互相訪問,他們之間已經可以通過IP互訪了,如下我的win電腦名:server IP:192.168.0.4,linux電腦名:rd06,IP:192.168.0.15,在linux下piping server的時候提示如下
PING server (202.104.57.161) 56(84) bytes of d
SMB的wins support 我已開啟了,我現在估計是不是我的網路設置上有問題。請達人指點一下,我的IP設置如下:
eth0 Link encap:Ethernet HWaddr 00:0C:76:AF:A4:2D
inet addr:192.168.0.15 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20c:76ff:feaf:a42d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6355 errors:0 dropped:0 overruns:0 frame:0
TX packets:4281 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4551231 (4.3 MiB) TX bytes:566987 (553.6 KiB)
Interrupt:18 Base address:0xef00
DNS:202.96.128.86
202.96.128.166
202.96.128.143
另一個WEB的問題是我想了解一下在linux下做大型web伺服器一般採用什麼軟體。是apache+jboss,還是apache+tomact.還是其它什麼,謝謝了。
《解決方案》
自己頂一下,等行中~~~
《解決方案》
在Linux主機上的/etc/hosts文件中添加一行
192.168.0.4 server
再ping server 就OK了。 不過,如果192.168.0.4的主機名改了,你還得手工改/etc/hosts.
第二個問題:
如果你的網站只用到JSP,那麼用apache/Tomcat就可以了。如果需要EJB支持,則需要考慮
JBoss等J2EE容器。 另外,用Apache/PHP做大型網站的也不少。
《解決方案》
首選感謝樓上大哥的回答,
在Linux主機上的/etc/hosts文件中添加一行
192.168.0.4 server
再ping server 就OK了。 不過,如果192.168.0.4的主機名改了,你還得手工改/etc/hosts.
這個方法我倒是知道,我想知道的是另外的方法,linux 應該支持wins之類的東西啊,SMB裡面我也嘗試過開啟wins支持,難道我得架一個DNS伺服器?
《解決方案》
支持jsp的建議apache+resin
我試過tomcat,流量一大就死了。
《解決方案》
嗯,有同事也跟我說過這個問題,了解了,謝謝各位,不過第一個問題另外的解決方法有沒有人知道?
《解決方案》
Come from:http://www.comptechdoc.org/os/linux/manual4/smbconf.html
try:
# 7. Name Resolution Options:
# All NetBIOS names must be resolved to IP Addresses
# 'Name Resolve Order' allows the named resolution mechanism to be
# specified the default order is "host lmhosts wins bcast". "host"
# means use the unix system gethostbyname() function call that will use
# either /etc/hosts OR DNS or NIS depending on the settings of
# /etc/host.config, /etc/nsswitch.conf
# and the /etc/resolv.conf file. "host" therefore is system
# configuration dependant. This parameter is most often of use to
# prevent DNS lookups
# in order to resolve NetBIOS names to IP Addresses. Use with care!
# The example below excludes use of name resolution for machines that
# are NOT on the local network segment - OR - are not deliberately to
# be known via lmhosts or via WINS.
; name resolve order = wins lmhosts bcast
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS
# Server
; wins support = yes
# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but
# NOT both
; wins server = w.x.y.z