linux学习1
1.首先看看linux服务器上的ssh和samba的服务是否开启
service sshd start
service smb start
2.如果服务都开启了那要看看防火墙是否阻挡了包
iptables -L 看看规则,要是不是很理解规则就直接
iptables -F 清空防火墙规则,然后
service iptables save 保存规则
3.防火墙也没了还是连不上那就试试吧selinux关掉
vi /etc/selinux/config
selinux=disabled 然后从新启动再来试试
Red Hat Linux 9无法进入图形界面的解决方法
用了Red Hat Linux 9几天,突然想进入图形界面去看看,敲入startx,忽然出现错误,no screen fouond!,郁闷,问题出在哪儿。
还记得上次在用硬盘装Red Hat Linux 9时,在最后的几步配置视频卡时,我选择了跳过X的配置,也许问题就在这里啊?上网找了一些资料,综合了一下,终于解决拉,很简单的。
方法如下:在字符界面下用root登陆,输入:redhat-config-xfree86,然后出现图形配置界面,用来配置显示(分辨率、色彩深度)及高级配置的,根据个人情况选择,确定后出现显示设置已改变,被写入/etc/x11/XF86Config,确定后再次输入:startx即可进入图形界面拉。
linux安装程序出现乱码解决方案:
在Oracle的安装程序对中文的支持有问题,只能使用英文界面来安装,在执行runinstaller之前,执行:export LANG=C;export LC_ALL=C
在linux系统中,尽量都使用英文安装环境。
4.CentOs5.4看不都界面输入sysytem-config- display重启就可以看到界面
5.CentOs5.4如果按下ifconfig无效的话,可以按/sbin/ifconfig试试
6.linux新建立文件然后要保存退出:
按ESC
输入 :wq
7.装了个CENTOS 5的虚拟机,请问怎么从图形界面切换到命令行界面?
1.临时切换:
ctrl+alt+1 …… ctrl+alt+6一共六个控制台。
2.永久关闭图形化:
在root下输入 vi /etc/inittab 将init:5修改为init:3
:wq保存 退出
再reboot一下 以后就直接用shell 不用图形化
配置网络:
[root@localhost root]# mount
/dev/sda2 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/sda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
/dev/sdb1 on /DISK1 type ext3 (rw)
none on /proc/fs/vmblock/mountPoint type vmblock (rw)
[root@localhost root]# cd /DISK1/
[root@localhost DISK1]# ls
lost+found wls1035_linux32.bin
[root@localhost DISK1]# ping www.baidu.com
[root@localhost DISK1]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:AB:9D:96
inet addr:192.168.1.166 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:672 (672.0 b)
Interrupt:10 Base address:0x10a4
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6571 errors:0 dropped:0 overruns:0 frame:0
TX packets:6571 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:448710 (438.1 Kb) TX bytes:448710 (438.1 Kb)
[root@localhost DISK1]# ping www.baidu.com
[root@localhost DISK1]# ping 192.168.1.167
PING 192.168.1.167 (192.168.1.167) 56(84) bytes of data.
64 bytes from 192.168.1.167: icmp_seq=1 ttl=128 time=0.840 ms
64 bytes from 192.168.1.167: icmp_seq=2 ttl=128 time=0.319 ms
64 bytes from 192.168.1.167: icmp_seq=3 ttl=128 time=0.243 ms
--- 192.168.1.167 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2007ms
rtt min/avg/max/mdev = 0.243/0.467/0.840/0.265 ms
[root@localhost DISK1]# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
--- 192.168.1.1 ping statistics ---
27 packets transmitted, 0 received, 100% packet loss, time 26014ms
[root@localhost DISK1]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
[root@localhost DISK1]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
[root@localhost DISK1]# service network reload
正在关闭接口 eth0: [ 确定 ]
关闭环回接口: [ 确定 ]
设置网络参数: [ 确定 ]
弹出环回接口: [ 确定 ]
弹出界面 eth0: [ 确定 ]
[root@localhost DISK1]# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
--- 192.168.1.1 ping statistics ---
9 packets transmitted, 0 received, 100% packet loss, time 8063ms
[root@localhost DISK1]#
[root@localhost DISK1]#
[root@localhost DISK1]#
[root@localhost DISK1]# setup
[root@localhost DISK1]# neat
[root@localhost DISK1]#
[root@localhost DISK1]# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
--- 192.168.1.1 ping statistics ---
9 packets transmitted, 0 received, 100% packet loss, time 8020ms
[root@localhost DISK1]# ping 192.168.1.167
PING 192.168.1.167 (192.168.1.167) 56(84) bytes of data.
64 bytes from 192.168.1.167: icmp_seq=1 ttl=128 time=0.394 ms
64 bytes from 192.168.1.167: icmp_seq=2 ttl=128 time=0.183 ms
64 bytes from 192.168.1.167: icmp_seq=3 ttl=128 time=0.215 ms
64 bytes from 192.168.1.167: icmp_seq=4 ttl=128 time=0.185 ms
64 bytes from 192.168.1.167: icmp_seq=5 ttl=128 time=0.183 ms
--- 192.168.1.167 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4000ms
rtt min/avg/max/mdev = 0.183/0.232/0.394/0.081 ms
[root@localhost DISK1]# arp -a
? (192.168.1.1) at 00:25:86:8D:55:CC [ether] on eth0
? (192.168.1.167) at 1C:4B:D6:90:D0:C4 [ether] on eth0
[root@localhost DISK1]#
虚拟机ftp地址:192.168.40.130
虚拟机weblogic:http://192.168.40.130:7001/console (注意:主机要访问虚拟机的ip地址要把虚拟机的防火墙关闭才可以访问)
虚拟机linux防火墙关闭代码:
service iptables stop//关闭防火墙
chkconfig iptables 0ff//重启关闭防火墙iptables就不启动了
posted on 2012-02-08 11:07 阳光总在风雨后001 阅读(378) 评论(0) 编辑 收藏 举报