TAFF

TAFF
Рейтинг
140
Регистрация
28.08.2008
myhand:
rpm -e yum-fastestmirror

# rpm -e yum-fastestmirror

error: Failed dependencies:

yum-fastestmirror is needed by (installed) yum-3.2.8-9.el5.centos.2.1.noarch

myhand:
и затем yum install ...

yum install

There was a problem importing one of the Python modules

required to run yum. The error leading to this problem was:

/usr/lib/python2.4/site-packages/_sqlite.so: failed to map segment from shared object: Cannot allocate memory

Please install a package which provides this module, or

verify that the module is installed correctly.

It's possible that the above module doesn't match the

current version of Python, which is:

2.4.3 (#1, May 24 2008, 13:47:28)

[GCC 4.1.2 20070626 (Red Hat 4.1.2-14)]

If you cannot solve this problem yourself, please go to

the yum faq at:

http://wiki.linux.duke.edu/YumFaq

myhand:
ну и что в файлах директории /etc/yum.repos.d/
# ls /etc/yum.repos.d
CentOS-Base.repo
myhand:
что в /etc/yum/pluginconf.d/ ?
# ls /etc/yum/pluginconf.d/
fastestmirror.conf

упс тупанул, минутку...

TAFF добавил 20.11.2009 в 20:34

TAFF:
CentOS-Base.repo
# cat /etc/yum.repos.d/CentOS-Base.repo
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

TAFF:
fastestmirror.conf
cat /etc/yum/pluginconf.d/fastestmirror.conf
# cat /etc/yum/pluginconf.d/fastestmirror.conf
[main]
enabled=0
verbose=0
socket_timeout=3
hostfilepath=/var/cache/yum/timedhosts.txt
maxhostfileage=10
maxthreads=15

10символов

myhand:
cat /etc/yum.conf
# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1

# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h

# Default.
# installonly_limit = 3

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
myhand:
ls /etc/yum/ /etc/yum.d/
# ls /etc/yum/ /etc/yum.d/
ls: /etc/yum.d/: No such file or directory
/etc/yum/:
pluginconf.d

10 символов

myhand:
TAFF, отладочную информацию в yum включите. ключик -d

/ru/forum/416055 #8, по сути ничего не изменилось, та информация актуальна

cyber2:
видно dovecot,httpd,nginx,vsftpd,mysqld
service dovecot stop && service httpd stop && service nginx stop && service vsftpd stop && service mysqld stop

+ yum install php-gd.i386 =

# yum install php-gd.i386 Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 85, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 163, in getOptionsConfig
disabled_plugins=self.optparser._splitArg(opts.disableplugins))
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 162, in _getConfig
startupconf.pluginconfpath,disabled_plugins)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 314, in doPluginSetup
plugin_types, confpath, disabled_plugins)
File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 145, in __init__
self._importplugins(types)
File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 186, in _importplugins
self._loadplugin(modulefile, types)
File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 195, in _loadplugin
conf = self._getpluginconf(modname)
File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 277, in _getpluginconf
except ParsingError, e:
NameError: global name 'ParsingError' is not defined
myhand:
пришлите вывод
Код:
ps aux
# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.2 1980 656 ? Ss 19:17 0:00 init [3]
root 13847 0.0 0.2 1644 568 ? Ss 19:17 0:00 syslogd -m 0
root 13850 0.0 0.1 1596 408 ? Ss 19:17 0:00 klogd -x
named 13876 0.0 1.3 49704 3416 ? Ssl 19:17 0:00 /usr/sbin/named
root 13904 0.0 0.4 6964 1052 ? Ss 19:17 0:00 /usr/sbin/sshd
root 13913 0.0 0.3 2640 840 ? Ss 19:17 0:00 xinetd -stayali
root 13924 0.0 0.1 5000 500 ? Ss 19:17 0:00 /usr/sbin/vsftp
root 14021 0.0 0.2 1792 576 ? Ss 19:17 0:00 /usr/sbin/dovec
root 14022 0.0 0.7 7516 1852 ? S 19:17 0:00 dovecot-auth
root 14040 0.0 0.8 9220 2328 ? Ss 19:17 0:00 sendmail: accep
smmsp 14048 0.0 0.5 8044 1476 ? Ss 19:17 0:00 sendmail: Queue
root 14075 0.0 0.6 8088 1580 ? Ss 19:17 0:00 nginx: master p
nginx 14076 0.0 1.0 8648 2748 ? S 19:17 0:00 nginx: worker p
root 14085 0.0 0.4 3204 1104 ? Ss 19:17 0:00 crond
dovecot 14098 0.0 0.6 4728 1760 ? S 19:17 0:00 pop3-login
dovecot 14099 0.0 0.6 4720 1752 ? S 19:17 0:00 pop3-login
dovecot 14100 0.0 0.6 4720 1752 ? S 19:17 0:00 pop3-login
dovecot 14101 0.0 0.6 4724 1756 ? S 19:17 0:00 imap-login
dovecot 14102 0.0 0.6 4728 1760 ? S 19:17 0:00 imap-login
dovecot 14103 0.0 0.6 4732 1764 ? S 19:17 0:00 imap-login
root 15807 0.0 1.0 9848 2776 ? Ss 19:18 0:00 sshd: root@pts/
root 15837 0.0 0.5 2388 1336 pts/0 Ss 19:18 0:00 -bash
root 15886 0.0 0.3 2100 832 pts/0 R+ 19:37 0:00 ps aux
root 20250 0.0 0.4 2376 1160 pts/0 S 19:22 0:00 /bin/sh /usr/bi
mysql 20296 1.6 7.0 128404 18440 pts/0 Sl 19:22 0:15 /usr/libexec/my
root 20354 0.0 3.5 25416 9344 ? Ss 19:22 0:00 /usr/sbin/httpd
apache 20356 0.8 6.7 36388 17760 ? S 19:22 0:07 /usr/sbin/httpd
apache 20357 0.8 6.8 36264 18012 ? S 19:22 0:07 /usr/sbin/httpd
apache 20358 0.8 6.9 36772 18144 ? S 19:22 0:08 /usr/sbin/httpd
apache 20469 0.9 6.9 36452 18164 ? S 19:22 0:08 /usr/sbin/httpd
[

10 символов

TAFF добавил 20.11.2009 в 19:40

cyber2:
Скопипастите эту команду, че_вам_надо замените на название пакета в юме

service httpd stop && service mysqld stop && yum install че_вам_надо && service mysqld start && service httpd start

Несработало, yum повалил свои ошибки

cyber2:
chkconfig --list
и посмотреть что у нас запускается
потом сделать service название stop
типа service httpd stop

После ребута сервера всё встанет на места или придётся лезть обратно и включать?

TAFF добавил 20.11.2009 в 19:22

cyber2:
chkconfig --list
и посмотреть что у нас запускается
потом сделать service название stop
типа service httpd stop

Перечисление останавливаемых процессов сделать возможно?

Jet D.:
Тут Вы ошибаетесь.

Да ну

10 да ну

natachik11:
Если в теле домена существует этот запрос- то он будет автоматически подниматься в выдаче. Это проверено.
Я не палю эту тему, так как это давно известно ;)

Ключ будет просто подсвечиваться жирным, это + в кликабельности, но на оптимизацию роли не играет

natachik11:
Наверняка скоро откроется несколько ГЗ, одна из них- РФ, далее будут скорее всего за ней открываться другие. От этого нормальные рушки будут в более выгодном положении

Почему?

10 почемучек

Всего: 1632