Bo's Oracle Station

查看: 3596|回复: 15

课程第1次

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2019-12-16 21:00:44 | 显示全部楼层 |阅读模式
  1. [root@instructor ~]# date +%s
  2. 1576415246
复制代码

  1.   [root@instructor ~]# bc
  2. bc 1.06.95
  3. Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc.
  4. This is free software with ABSOLUTELY NO WARRANTY.
  5. For details type `warranty'.
  6. scale=5
  7. 5/3
  8. 1.66666
复制代码
  1. [root@instructor ~]# service dhcpd status
  2. dhcpd (pid  2447) is running...
  3. [root@instructor ~]# service xinetd status
  4. xinetd (pid  2418) is running...
  5. [root@instructor ~]# service named status
  6. rndc: neither /etc/rndc.conf nor /etc/rndc.key was found
  7. named (pid  1750) is running...
  8. [root@instructor ~]# service nfs status
  9. rpc.svcgssd is stopped
  10. rpc.mountd (pid 2134) is running...
  11. nfsd (pid 2131 2130 2129 2128 2127 2126 2125 2124) is running...
  12. rpc.rquotad (pid 2118) is running...
  13. [root@instructor ~]# service rpcbind status
  14. rpcbind (pid  1773) is running...
  15. [root@instructor ~]# service httpd status
  16. httpd (pid  2550) is running...
  17. [root@instructor ~]# service vsftpd status
  18. vsftpd (pid 2437) is running...
复制代码
  1. [root@instructor dhcp]# service dhcpd restart
  2. Shutting down dhcpd: [  OK  ]
  3. Starting dhcpd: [  OK  ]
  4. [root@instructor dhcp]# tail -f /var/log/messages
  5. Dec 15 21:48:42 instructor dhcpd: For info, please visit https://www.isc.org/software/dhcp/
  6. Dec 15 21:48:42 instructor dhcpd: WARNING: Host declarations are global.  They are not limited to the scope you declared them in.
  7. Dec 15 21:48:42 instructor dhcpd: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
  8. Dec 15 21:48:42 instructor dhcpd: Wrote 0 class decls to leases file.
  9. Dec 15 21:48:42 instructor dhcpd: Wrote 0 deleted host decls to leases file.
  10. Dec 15 21:48:42 instructor dhcpd: Wrote 0 new dynamic host decls to leases file.
  11. Dec 15 21:48:42 instructor dhcpd: Wrote 13 leases to leases file.
  12. Dec 15 21:48:42 instructor dhcpd: Listening on LPF/br0/00:0c:29:e6:58:98/192.168.0.0/24
  13. Dec 15 21:48:42 instructor dhcpd: Sending on   LPF/br0/00:0c:29:e6:58:98/192.168.0.0/24
  14. Dec 15 21:48:42 instructor dhcpd: Sending on   Socket/fallback/fallback-net
  15. ^[[B^C
  16. [root@instructor dhcp]# tail -n 30 -f /var/log/messages
复制代码
  1. /var/lib/tftpboot/pxelinux.cfg
  2. [root@instructor pxelinux.cfg]#
复制代码
  1. /var/www/html
  2. [root@instructor html]# ls
  3. course   kick           lab              multiks.php  rhce       vremote.cfg  workstation.cfg
  4. courses  ksupload.html  leaser           printers     rhsurvey   vremote.php
  5. ipa      ksupload.php   metadestroy.cfg  pub          small.cfg  vserver.php
  6. [root@instructor html]# vim workstation.cfg
复制代码







回复

使用道具 举报

0

主题

8

帖子

26

积分

新手上路

Rank: 1

积分
26
发表于 2019-12-16 22:05:11 | 显示全部楼层
先来占个楼
回复 支持 反对

使用道具 举报

0

主题

1

帖子

10

积分

新手上路

Rank: 1

积分
10
发表于 2019-12-16 23:14:38 | 显示全部楼层
怎么感觉好像少了点代码
回复 支持 反对

使用道具 举报

0

主题

1

帖子

4

积分

新手上路

Rank: 1

积分
4
发表于 2019-12-16 23:36:28 | 显示全部楼层
1111111111
回复 支持 反对

使用道具 举报

7

主题

29

帖子

117

积分

注册会员

Rank: 2

积分
117
发表于 2019-12-17 01:48:10 | 显示全部楼层
请问一下,halt,init,shutdown哪种关机办法比较好,instructor采用shutdown now后,提示telling init to go to single user mode,百度之后用halt -p解决,但是为什么呢
回复 支持 反对

使用道具 举报

0

主题

8

帖子

26

积分

新手上路

Rank: 1

积分
26
发表于 2019-12-17 14:28:00 | 显示全部楼层
        host server3 {
                hardware ethernet 00:50:56:29:3B:84;
                fixed-address 192.168.0.103;
        }
        host desktop3 {
                hardware ethernet 00:50:56:21:26:C2;
                fixed-address 192.168.0.3;
        }


#       The following lines are examples of kickstart
#       directives.
        filename "/kickstart/workstation.cfg";
[root@instructor dhcp]# service dhcpd restart
Shutting down dhcpd:                                       [  OK  ]
Starting dhcpd:                                            [FAILED]
[root@instructor dhcp]# tail -f /var/log/messages
Dec 17 03:34:04 instructor dhcpd:
Dec 17 03:34:04 instructor dhcpd: This version of ISC DHCP is based on the release available
Dec 17 03:34:04 instructor dhcpd: on ftp.isc.org.  Features have been added and other changes
Dec 17 03:34:04 instructor dhcpd: have been made to the base software release in order to make
Dec 17 03:34:04 instructor dhcpd: it work better with this distribution.
Dec 17 03:34:04 instructor dhcpd:
Dec 17 03:34:04 instructor dhcpd: Please report for this software via the Red Hat Bugzilla site:
Dec 17 03:34:04 instructor dhcpd:     http://bugzilla.redhat.com
Dec 17 03:34:04 instructor dhcpd:
Dec 17 03:34:04 instructor dhcpd: exiting.

修改完之后重启报错了   看不懂出错在哪里了,麻烦老师指导下
回复 支持 反对

使用道具 举报

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
 楼主| 发表于 2019-12-17 15:25:13 | 显示全部楼层
765686189 发表于 2019-12-17 01:48
请问一下,halt,init,shutdown哪种关机办法比较好,instructor采用shutdown now后,提示telling init to  ...

poweroff  这个命令最好,只要ATX的电源,相当于halt +按电源键。
回复 支持 反对

使用道具 举报

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
 楼主| 发表于 2019-12-17 15:29:46 | 显示全部楼层
Rassss 发表于 2019-12-17 14:28
host server3 {
                hardware ethernet 00:50:56:29:3B:84;
                fixed- ...

tail -n 40  /var/log/message多显示几行,可能会告诉你重复写了host 项,检查一下dhcpd-vserver.conf里有没有重复项。修改之前,最好保存原配置文件。  再有最后一种可能,如果是在win上修改再上传到Linux上,上传之前请用ultraedit之类的工具,把文件转成UNIX格式。
回复 支持 反对

使用道具 举报

0

主题

8

帖子

26

积分

新手上路

Rank: 1

积分
26
发表于 2019-12-17 16:43:39 | 显示全部楼层
botang 发表于 2019-12-17 15:29
tail -n 40  /var/log/message多显示几行,可能会告诉你重复写了host 项,检查一下dhcpd-vserver.conf里 ...

最后发现多写了2个括号   {  }多了2个这个    删掉之后可以了
回复 支持 反对

使用道具 举报

0

主题

8

帖子

26

积分

新手上路

Rank: 1

积分
26
发表于 2019-12-17 22:51:44 | 显示全部楼层
[root@instructor dhcp]# tail -n 40 -f /var/log/messages
Dec 18 02:36:55 instructor named[1903]: error (network unreachable) resolving '3.rhel.pool.ntp.org/A/IN': 192.203.230.10#53
Dec 18 02:36:55 instructor named[1903]: error (network unreachable) resolving '3.rhel.pool.ntp.org/AAAA/IN': 192.203.230.10#53
Dec 18 02:36:55 instructor named[1903]: error (network unreachable) resolving '3.rhel.pool.ntp.org/A/IN': 192.112.36.4#53
Dec 18 02:36:55 instructor named[1903]: error (network unreachable) resolving '3.rhel.pool.ntp.org/AAAA/IN': 192.36.148.17#53
Dec 18 02:36:55 instructor named[1903]: error (network unreachable) resolving '3.rhel.pool.ntp.org/A/IN': 128.63.2.53#53
Dec 18 02:36:55 instructor named[1903]: error (network unreachable) resolving '3.rhel.pool.ntp.org/AAAA/IN': 192.33.4.12#53
Dec 18 02:36:55 instructor named[1903]: error (network unreachable) resolving '3.rhel.pool.ntp.org/A/IN': 192.58.128.30#53
Dec 18 02:36:55 instructor named[1903]: error (network unreachable) resolving '3.rhel.pool.ntp.org/AAAA/IN': 2001:dc3::35#53
Dec 18 02:36:55 instructor named[1903]: error (network unreachable) resolving '3.rhel.pool.ntp.org/A/IN': 2001:dc3::35#53
Dec 18 02:36:55 instructor named[1903]: error (network unreachable) resolving '3.rhel.pool.ntp.org/AAAA/IN': 2001:503:ba3e::2:30#53
Dec 18 02:36:55 instructor named[1903]: error (network unreachable) resolving '3.rhel.pool.ntp.org/A/IN': 2001:500:2f::f#53
Dec 18 02:36:55 instructor named[1903]: error (network unreachable) resolving '3.rhel.pool.ntp.org/AAAA/IN': 192.58.128.30#53
Dec 18 02:36:55 instructor named[1903]: error (network unreachable) resolving '3.rhel.pool.ntp.org/A/IN': 198.41.0.4#53
Dec 18 02:36:55 instructor named[1903]: error (network unreachable) resolving '3.rhel.pool.ntp.org/AAAA/IN': 2001:500:1::803f:235#53
Dec 18 02:36:55 instructor named[1903]: error (network unreachable) resolving '3.rhel.pool.ntp.org/A/IN': 2001:7fd::1#53
Dec 18 02:36:55 instructor named[1903]: error (network unreachable) resolving '3.rhel.pool.ntp.org/AAAA/IN': 2001:7fd::1#53
Dec 18 02:36:55 instructor named[1903]: error (network unreachable) resolving '3.rhel.pool.ntp.org/A/IN': 2001:500:1::803f:235#53
Dec 18 02:36:55 instructor named[1903]: error (network unreachable) resolving '3.rhel.pool.ntp.org/AAAA/IN': 192.5.5.241#53
Dec 18 02:41:11 instructor dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Dec 18 02:41:11 instructor dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Dec 18 02:41:11 instructor dhcpd: All rights reserved.

唐老师这个是什么错误
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-5-9 22:20 , Processed in 0.041602 second(s), 24 queries .

快速回复 返回顶部 返回列表