文档介绍:Linux操作系统网络管理
周炯
上海艾基信息技术有限公司
1
Acegene IT Co. Ltd.
内容简介
1 网络管理
2 VNC使用
3 远程操作 ssh rsh 使用
2
Acegene IT Co. Ltd.
1 网络管理
网卡配置
IP转发
网络设置
3
Acegene IT Co. Ltd.
网卡配置
配置文件(Redhat)
/etc/work-scripts/* : 网卡
/etc/work-scripts/ifcfg-eth0
/etc/: DNS配置
命令行
ifconfig [eth0]
# ifconfig eth0 broadcast
ifup [eth0] 启动网卡
ifdown [eth0] 禁用网卡
config
4
Acegene IT Co. Ltd.
IP转发
/proc//ipv4/ip_forward为1
/etc/work
FORWARD_IPV4=YES
5
Acegene IT Co. Ltd.
网络设置
主机名设置
配置文件: /etc/work
命令行: #hostname [host]
/etc/hosts 配置
IP long_name short_name alias
localhost localhost
6
Acegene IT Co. Ltd.
2 VNC使用和管理
远程图形终端Remote X terminal
跨平台
Linux
Unix
Windows
软件部分
vncserver
vncviewer
7
Acegene IT Co. Ltd.
2 VNC服务器端管理
Install vnc server for Linux
rpm –Uvh vnc--
Start VNC server and stop vnc server.
The user must be the current user to run X application. Otherwise, will occure a authentication error.
vncserver :2 (localhost:2)
vncserver –kill :2
Set password
vncpasswd
Set DISPLAY
DISPLAY=[host]:[], export DISPLAY
8
Acegene IT Co. Ltd.
2 VNC客户端使用
Run X application
vncviewer [hostname]:[display]
如 vncviewer localhost:2
Web 访问
http://hostname:580x
x为display端口
9
Acegene IT Co. Ltd.
3 远程操作
服务管理
chkconfig on
service restart
或: /etc/ restart
远程交互
[hostname]
10
Acegene IT Co. Ltd.