寫此隨筆,只是爲了記錄我安裝cobbler遇到的奇怪問題,雖然這個問題很讓我無語,可是居然折騰了我一天。廢話很少說,入題:python
一如既往的按照之前的安裝方式安裝cobbler,不會出錯的地方我就一帶而過了:linux
個人是centos6.3_x64位系統!vim
#1、安裝epel源: rpm -ivh http://mirrors.opencas.cn/epel/epel-release-latest-6.noarch.rpm #2、開始安裝各類必須的服務: yum install -y install dhcp tftp rsync xinetd httpd cobbler #3、設置開機啓動: chkconfig httpd on chkconfig cobblerd on chkconfig xinetd on
管理dhcp這個看到不少人都說會出現錯誤啓動不起來,這個只要注意一點仍是很簡單的,只要跟本機在同一個IP段便可,不然dhcp確定啓動不起來!centos
來個技巧,若是你在一個局域網中有多個dhcp服務器的,你怕開啓cobbler上的dhcp服務會干擾目前正在運行的dhcp服務器的話,解決方法很簡單,只需把cobbler上的dhcp的range網絡段給註釋掉便可,就是變成只能指定分配ip的意思咯:服務器
vim /etc/cobbler/dhcp.template網絡
如今我遇到的問題來了:app
http、iptables、selinux等服務所有標準設置,都是正常的仍是提示以下錯誤:socket
[root@localhost ~]# cobbler check httpd does not appear to be running and proxying cobbler, or SELinux is in the way. Original traceback: Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/cobbler/cli.py", line 252, in check_setup s.ping() File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__ return self.__send(self.__name, args) File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request verbose=self.__verbose File "/usr/lib64/python2.6/xmlrpclib.py", line 1235, in request self.send_content(h, request_body) File "/usr/lib64/python2.6/xmlrpclib.py", line 1349, in send_content connection.endheaders() File "/usr/lib64/python2.6/httplib.py", line 908, in endheaders self._send_output() File "/usr/lib64/python2.6/httplib.py", line 780, in _send_output self.send(msg) File "/usr/lib64/python2.6/httplib.py", line 739, in send self.connect() File "/usr/lib64/python2.6/httplib.py", line 720, in connect self.timeout) File "/usr/lib64/python2.6/socket.py", line 567, in create_connection raise error, msg error: [Errno 110] Connection timed out
根據提示,就是最直接的解決問題的方法:是http沒啓動?是http使用了代理?是防火牆阻攔了?是selinux不容許經過?spa
可是,通過個人一一再三檢查,以上問題都不是!一切都是正常!!!苦啊......代理
在通過N多百度+谷歌的折騰下仍是沒能解決問題,由於不少人都是說是以上問題形成的。最後無奈重裝再來一次吧!重裝好cobbler,執行cobbler check沒有出現上面的問題,在設置一下/etc/cobbler/settings以後又同樣的提示錯誤。
好,算給我找到問題所在了,就是設置/etc/cobbler/settings出錯了,好吧,我想到問題所在了,server和next_server這兩個IP設置的跟本機的IP不一樣,由於我是想後面要修改成其餘IP的,因此臨時隨便指定一個IP給它,哭.....
修改好這兩個IP爲本機IP後,再執行cobbler check一下,居然超級順暢,問題解決了,坑啊......