|
今天安装完cobbler启动是遇到了一些错误,记录下来以备不时之需
1.cobbler启动报错
[root@localhost]# /etc/init.d/cobblerd start
Starting cobbler daemon: No module named ctypes
Traceback (most recent call last):
ImportError: No module named ctypes
解决办法:Finally we installed python-ctypes-1.0.2-2.el5.i386 on centos5.7 with
cobbler 2.3.1 package build from git source
and now cobblerd starts fine 这是网上搜到的
2.httpd启动报错
[root@localhost]# /etc/init.d/httpd start
Starting httpd: Syntax error on line 10 of /etc/httpd/conf.d/cobbler.conf:
Invalid command 'WSGIScriptAliasMatch', perhaps misspelled or defined by a module not included in the server configuration
而此时的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):
error: (111, 'Connection refused')
解决:Cobbler 2.2.x has a requirement for mod_wsgi which when installed via EPEL will be disabled by default. If you try to start httpd you will see the following:
Invalid command 'WSGIScriptAliasMatch', perhaps misspelled or defined by a module not included in the server configuration
You can enable this module by editing
把LoadModule wsgi_module modules/mod_wsgi.so
现在cobbler启动也正常了。
---------------------------
问题:/var/www/cobbler安装iso的仓库没有空,需要扩展。
这里在有空间的分区创建一下软连接.
1.把/var/www/cobbler的目录都copy到分区(data1)中去 copy -r /var/www/cobbler /data1
2.把/var/www/cobbler目录修改名字:mv /var/www/cobbler /var/www/cobblerbak
3.创建软连接:
cd /var/www
ls -n /data1/cobbler(绝对路径) cobbler
这样,当然软件再次写/var/www/cobbler的时候,东西都会保存在/data1/cobbler目录.