AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题

问题[centos5](server)

Martin Hope
Leonardo Ramé
Asked: 2017-01-05 11:12:04 +0800 CST

OpenSSL 验证返回码:20

  • 1

我正在尝试使用 连接到 smtp.googlemail.com openssl,从 Ubuntu 16.04 我可以毫无问题地登录和发送电子邮件,但是从 Centos5 我得到这个:

/usr/local/ssl/bin/openssl s_client -starttls smtp -connect smtp.googlemail.com:587 -crlf -ign_eof
CONNECTED(00000003)
depth=2 C = US, O = GeoTrust Inc., CN = GeoTrust Global CA
verify error:num=20:unable to get local issuer certificate
---
Certificate chain
 0 s:/C=US/ST=California/L=Mountain View/O=Google Inc/CN=smtp.googlemail.com
   i:/C=US/O=Google Inc/CN=Google Internet Authority G2
 1 s:/C=US/O=Google Inc/CN=Google Internet Authority G2
   i:/C=US/O=GeoTrust Inc./CN=GeoTrust Global CA
 2 s:/C=US/O=GeoTrust Inc./CN=GeoTrust Global CA
   i:/C=US/O=Equifax/OU=Equifax Secure Certificate Authority
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIEijCCA3KgAwIBAgIIZhHz2JffUYMwDQYJKoZIhvcNAQELBQAwSTELMAkGA1UE
BhMCVVMxEzARBgNVBAoTCkdvb2dsZSBJbmMxJTAjBgNVBAMTHEdvb2dsZSBJbnRl
cm5ldCBBdXRob3JpdHkgRzIwHhcNMTYxMjE1MTM0NjI0WhcNMTcwMzA5MTMzNDAw
WjBtMQswCQYDVQQGEwJVUzETMBEGA1UECAwKQ2FsaWZvcm5pYTEWMBQGA1UEBwwN
TW91bnRhaW4gVmlldzETMBEGA1UECgwKR29vZ2xlIEluYzEcMBoGA1UEAwwTc210
cC5nb29nbGVtYWlsLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
AKNjXgKkh+MP+GoDISKosZkL/UG6pdt7a/pHf4DPVMMrx/OAEWmLBQmKaV3QAJC2
qUlHhOsLcy7qtirFsUK9Y5jy6R0Ucxd7LW/REtvhwY2X8QfHm0IEnOE1CDuYrfUk
Kk7PtQxTqGxG8aei+LXLxLNFNTjbfQiObvQXREw7qXfEWQb5+0T2FOxpB+UhYx20
bNpOimB0dco/Up/v+RekBKlvS2SrOCMSeTYYReZkycriSt0pMsI0IIvkaeE1Isnx
wA23B0dz6mVUn5blHPAIiEqi7Ic/W5tBrVkUwC40aL0ZuFQUjaJ/JUXCLon8uOnD
P7VDUk0mqlDoXMvHA1XkFO0CAwEAAaOCAVAwggFMMB0GA1UdJQQWMBQGCCsGAQUF
BwMBBggrBgEFBQcDAjAeBgNVHREEFzAVghNzbXRwLmdvb2dsZW1haWwuY29tMGgG
CCsGAQUFBwEBBFwwWjArBggrBgEFBQcwAoYfaHR0cDovL3BraS5nb29nbGUuY29t
L0dJQUcyLmNydDArBggrBgEFBQcwAYYfaHR0cDovL2NsaWVudHMxLmdvb2dsZS5j
b20vb2NzcDAdBgNVHQ4EFgQU73XPHhFAOaKff/yiXSyANI3w4lIwDAYDVR0TAQH/
BAIwADAfBgNVHSMEGDAWgBRK3QYWG7z2aLV29YG2u2IaulqBLzAhBgNVHSAEGjAY
MAwGCisGAQQB1nkCBQEwCAYGZ4EMAQICMDAGA1UdHwQpMCcwJaAjoCGGH2h0dHA6
Ly9wa2kuZ29vZ2xlLmNvbS9HSUFHMi5jcmwwDQYJKoZIhvcNAQELBQADggEBAHLC
75s5iG0hrGns1J1qTEMKi/AxjP4xmjWzAm1S0wc/8a2qDemxd1+MCqZrNpmXYVog
luJ+JDtZlEsHaAqB5ATc3bnMLhrvh7TJLRUvyk+l3OJ+8oJR8HUyghqUQ9uB5qNX
8xXJbmTfY1nCXOuG2A9nWTlMubt//kasnbDCrcpG9TZO+dQ0H4SEuC10xtIFM04A
vWsDrdjThn8viHI7vmpEbeTR6E60jhEKYZfqhWFDH4e7k8TsAKIJCv6v5xo4yLp4
TtTJJk3eWrEHxt5cjWZlqx22/ru0Whk+6ZLvUzm329KwQ6kNm9quFngUpIFh241F
tFPvcslCp56bJ3xzdqs=
-----END CERTIFICATE-----
subject=/C=US/ST=California/L=Mountain View/O=Google Inc/CN=smtp.googlemail.com
issuer=/C=US/O=Google Inc/CN=Google Internet Authority G2
---
No client certificate CA names sent
Peer signing digest: SHA256
Server Temp Key: ECDH, P-256, 256 bits
---
SSL handshake has read 4001 bytes and written 508 bytes
---
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES128-GCM-SHA256
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : ECDHE-RSA-AES128-GCM-SHA256
    Session-ID: 917A4A945C1AD702E8F0588217413B3311AA226D7E78BDD87B8596965AA0D620
    Session-ID-ctx: 
    Master-Key: 43A388B6FF51CFC304F63D3EEC61912670C38CF7ECB347F521C48CD094C333BBBE4532FBCB5D41203543B8F0D081C2BA
    Key-Arg   : None
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    TLS session ticket lifetime hint: 100800 (seconds)
    TLS session ticket:
    0000 - bf cf bb fc 16 de 25 7a-cd bc 70 64 54 37 f0 60   ......%z..pdT7.`
    0010 - 65 97 fe f6 65 24 c0 c6-5e 9f a8 e2 8f 5e 20 76   e...e$..^....^ v
    0020 - 89 d7 f7 29 2c 43 fe f5-b9 95 c9 f3 ca 66 e6 cf   ...),C.......f..
    0030 - 53 20 86 84 1e 53 08 23-cf 14 56 23 d4 2f 45 1e   S ...S.#..V#./E.
    0040 - f1 68 0a d8 6a e1 06 e9-d5 d0 59 fc 86 df 0b f8   .h..j.....Y.....
    0050 - 1b be d0 a3 40 83 3d 3c-d0 ce ba 07 a9 46 d7 6d   ....@.=<.....F.m
    0060 - 73 35 cd 72 04 3a 5b 90-a2 db 1a e2 7b 78 6e 90   s5.r.:[.....{xn.
    0070 - 74 91 52 1e 10 68 15 58-5f b7 4d 0f ba 9e 2f 32   t.R..h.X_.M.../2
    0080 - ac 78 92 37 47 d3 3c 3e-fd b0 ec 61 83 78 6e 48   .x.7G.<>...a.xnH
    0090 - 61 27 ea 01 d7 74 3e 97-ab 72 05 00 78 3a 6d 9d   a'...t>..r..x:m.
    00a0 - b4 a0 57 e9                                       ..W.

    Start Time: 1483556858
    Timeout   : 300 (sec)
    Verify return code: 20 (unable to get local issuer certificate)

看起来 OpenSSL 找不到所需的根证书,对吗?好的,我该如何解决这个问题?

openssl centos5
  • 1 个回答
  • 3899 Views
Martin Hope
Mike B
Asked: 2016-10-29 13:50:05 +0800 CST

RAID 磁盘问题后启动 CentOS 5 时出错

  • 1

我有一个在IBM X3850 X5 type 7143盒子上运行的 linux 设备。中央操作系统 5。

它具有 6 个驱动器的 RAID 5 配置。2 个驱动器出现故障。一个坏了,需要更换。另一个刚刚离线并重新在线。

备份脱机驱动器后,阵列恢复联机,此时我们更换了另一个驱动器,以便它可以重建。此时,所有驱动器都显示为在线,并且 RAID 阵列在 MegaRAID BIOS 中显示为健康状态。

尽管如此,当我尝试启动 CentOS 时,我仍然遇到错误。具体来说,我看到:

Loading dm-message.ko module
Loading dm-raid45.ko module
device-mapper: dm-raid45: initialized v0.25941    
Waiting for driver initialization.
Scanning and configuring dmraid supported devices
Creating root device.
Mounting root filesystem.
kjournald starting.  Commit interval 5 seconds. 
EXT3-fs: mounted filesystem with ordered data mod. 
Setting up other filesystems.
Setting up new root fs
setuproot: moving /dev failed: No such file or directory
no fstab.sys, mounting internal defaults
setuproot: error mounting /proc: No such file or directory 
setuproot: error mounting /sys: No such file or directory
Switching to new root and running init. 
unmounting old /dev
unmounting old /proc
unmounting old /sys
ERROR opening /dev/console: No such file or directory
Trying to use fd 0 instead
WARNING: can't access (null)
exec of init ((null)) failed!!!: Bad address
Kernel panic - not syncing: Attempting to kill init!

关于这里可能发生的事情以及如何解决它的任何想法?我不确定如果成功重建 RAID 阵列,为什么 CentOS 会出现问题。

linux centos raid hardware-raid centos5
  • 2 个回答
  • 699 Views
Martin Hope
Debianuser
Asked: 2016-08-24 12:04:37 +0800 CST

Centos 5 上的 4 TB 外部磁盘

  • 0

我有一台运行 CentOS 5(内核 2.6.18-92.el5)的旧服务器。它正在运行一个遗留应用程序,所以我还不能退役它。我已将 2 TB USB 磁盘连接到它以进行备份,并且该磁盘现在几乎已满。

我买了一个新的 4 TB 磁盘,但操作系统只检测到它为 2 TB。我知道 fdisk 不支持 2TB 以上的分区,但我也没有使用 parted 的运气。

有什么解决方法可以让操作系统读取 4 TB 的全部空间?

来自 dmesg:

usb-storage: device found at 15
usb-storage: waiting for device to settle before scanning
  Vendor: Seagate   Model: Backup+  Desk     Rev: 040B
  Type:   Direct-Access                      ANSI SCSI revision: 06
sdc: Spinning up disk....ready
sdc : very big device. try to use READ CAPACITY(16).
sdc : READ CAPACITY(16) failed.
sdc : status=0, message=00, host=5, driver=00 
sdc : use 0xffffffff as device size
SCSI device sdc: 4294967296 512-byte hdwr sectors (2199023 MB)

分开 /dev/sdc 打印

Model: Seagate Backup+ Desk (scsi)
Disk /dev/sdc: 2199GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name     Flags
 1      17.4kB  2100GB  2100GB               primary       

Information: Don't forget to update /etc/fstab, if necessary.
partition fdisk parted centos5
  • 2 个回答
  • 1710 Views
Martin Hope
Nick
Asked: 2016-08-11 08:30:45 +0800 CST

CentOS 5 的 net.ipv4.tcp_challenge_ack_limit 在哪里?

  • 0

我正在尝试通过执行以下操作来修复最新的安全错误:

sysctl net.ipv4.tcp_challenge_ack_limit=999999999

但是在 CentOS 5 内核 2.6.18-371.12.1.el5PAE 上缺少此文件

net.ipv4.tcp_challenge_ack_limitCentOS 5在哪里?

centos5
  • 2 个回答
  • 1572 Views
Martin Hope
KennyD
Asked: 2016-08-06 08:27:26 +0800 CST

可用内存杀死内核进程

  • 0

我们有一个具有 64Gb RAM 的 CentOS5.8 服务器,正常运行大约 700Mb RAM 使用量。当我尝试tar -czf进入大约 22Gb 的存档时,页面缓存爬升到大约 22Gb,然后内核开始终止进程​​。最终,即使插入 USB 键盘,服务器也会变得无响应。

Fri Aug  5 11:00:01 CDT 2016
 11:00:01 up 1 day,  2:06,  3 users,  load average: 1.31, 1.71, 1.77
             total       used       free     shared    buffers     cached
Mem:         64237      22874      41363          0          0      22407
-/+ buffers/cache:        466      63771
Swap:         5279          0       5279
*****************************************************
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      534G  106G  401G  21% /
/dev/sda3              97M   13M   80M  14% /boot
tmpfs                  32G     0   32G   0% /dev/shm
*****************************************************
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 0  0      0 42355760   1020 22944876    0    0    33    19    7    6  0  0 100  0  0
 0  0      0 42355760   1020 22945204    0    0     0     0 1003 2933  0  0 100  0  0
 0  0      0 42355760   1020 22945220    0    0     0     0 1040 2963  0  0 100  0  0
 0  0      0 42355760   1020 22945220    0    0     0     0 1004 2843  0  0 100  0  0
 0  0      0 42355760   1020 22945220    0    0     0     0 1036 2915  0  0 100  0  0

和过程

root       993  0.0  0.0 S<s  00:00:00 /sbin/udevd -d
root      3578  0.0  0.0 S<Lsl 00:00:00 iscsiuio
root      3582  0.0  0.0 Ss   00:00:00 iscsid
root      3583  0.0  0.0 S<Ls 00:00:00 iscsid
root      4377  0.0  0.0 S<sl 00:00:00 auditd
root      4379  0.0  0.0 S<sl 00:00:00  \_ /sbin/audispd
root      4401  0.0  0.0 Ss   00:00:00 syslogd -m 0
root      4404  0.0  0.0 Ss   00:00:00 klogd -x
root      4540  0.0  0.0 Ss   00:00:00 irqbalance
rpc       4574  0.0  0.0 Ss   00:00:00 portmap
rpcuser   4655  0.0  0.0 Ss   00:00:00 rpc.statd
root      4683  0.0  0.0 Ss   00:00:00 rpc.idmapd
dbus      4705  0.0  0.0 Ss   00:00:00 dbus-daemon --system
root      4714  0.0  0.0 Ss   00:00:00 /usr/sbin/hcid
root      4720  0.0  0.0 Ss   00:00:00 /usr/sbin/sdpd
root      4786  0.0  0.0 S<   00:00:00 [krfcommd]
root      4823  0.0  0.0 Ssl  00:00:00 pcscd
root      4833  0.0  0.0 Ss   00:00:00 /usr/sbin/acpid
68        4846  0.0  0.0 Ss   00:00:01 hald
root      4847  0.0  0.0 S    00:00:00  \_ hald-runner
68        4855  0.0  0.0 S    00:00:00      \_ hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
68        4862  0.0  0.0 S    00:00:00      \_ hald-addon-keyboard: listening on /dev/input/event0
68        4865  0.0  0.0 S    00:00:00      \_ hald-addon-keyboard: listening on /dev/input/event3
68        4868  0.0  0.0 S    00:00:00      \_ hald-addon-keyboard: listening on /dev/input/event2
root      4876  0.0  0.0 S    00:00:13      \_ hald-addon-storage: polling /dev/sr0
root      4878  0.0  0.0 S    00:00:00      \_ hald-addon-storage: polling /dev/sdb
root      4912  0.0  0.0 Ss   00:00:00 /usr/bin/hidd --server
root      4956  0.0  0.0 Ssl  00:00:00 automount
root      4973  0.0  0.0 Ss   00:00:00 ./hpiod
root      4978  0.0  0.0 S    00:00:00 /usr/bin/python ./hpssd.py
root      4991  0.0  0.0 Ss   00:00:00 /usr/sbin/sshd
root     12541  0.0  0.0 Ss   00:00:01  \_ sshd: root@pts/1
root     12543  0.0  0.0 Ss+  00:00:00  |   \_ -bash
root     13224  0.0  0.0 Ss   00:00:00  \_ sshd: metabk1 [priv]
metabk1  13226  0.0  0.0 S    00:00:00      \_ sshd: metabk1@pts/2
metabk1  13227  0.0  0.0 Ss+  00:00:00          \_ -bash
root      5000  0.0  0.0 Ss   00:00:00 cupsd
root      5023  0.0  0.0 Ss   00:00:06 sendmail: accepting connections
smmsp     5031  0.0  0.0 Ss   00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
root      5041  0.0  0.0 Ss   00:00:00 gpm -m /dev/input/mice -t exps2
root      5050  0.0  0.0 Ss   00:00:00 crond
root     13284  0.0  0.0 S    00:00:00  \_ crond
root     13285  0.0  0.0 Ss   00:00:00      \_ /bin/sh -c /usr/local/bin/memmon.sh >> /var/log/memmon.txt
root     13286  0.0  0.0 S    00:00:00          \_ /bin/bash /usr/local/bin/memmon.sh
root     13292  0.0  0.0 R    00:00:00              \_ ps axfww -o ruser,pid,%cpu,%mem,stat,time,cmd
xfs       5079  0.0  0.0 Ss   00:00:00 xfs -droppriv -daemon
root      5096  0.0  0.0 Ss   00:00:00 /usr/sbin/atd
avahi     5135  0.0  0.0 Ss   00:00:00 avahi-daemon: running [RDVR.local]
avahi     5136  0.0  0.0 Ss   00:00:00  \_ avahi-daemon: chroot helper
root      5197  0.0  0.0 S    00:00:00 /usr/sbin/smartd -q never
root      5202  0.0  0.0 Ss+  00:00:00 /sbin/mingetty tty1
root      5203  0.0  0.0 Ss   00:00:00 login -- root
root     13025  0.0  0.0 Ss   00:00:00  \_ -bash
root     13060  0.7  0.0 S+   00:00:14      \_ top -M
root      5204  0.0  0.0 Ss+  00:00:00 /sbin/mingetty tty3
root      5205  0.0  0.0 Ss+  00:00:00 /sbin/mingetty tty4
root      5206  0.0  0.0 Ss+  00:00:00 /sbin/mingetty tty5
root      5208  0.0  0.0 Ss+  00:00:00 /sbin/mingetty tty6
root      5209  0.0  0.0 Ss   00:00:00 /usr/sbin/gdm-binary -nodaemon
root     13202  0.0  0.0 S    00:00:00  \_ /usr/sbin/gdm-binary -nodaemon
root     13203  0.6  0.0 Ss+  00:00:02      \_ /usr/bin/Xorg :0 -br -audit 0 -auth /var/gdm/:0.Xauth -nolisten tcp vt7
gdm      13216  0.1  0.0 Ss   00:00:00      \_ /usr/libexec/gdmgreeter
root      5251  0.0  0.0 Sl   00:00:00 /usr/libexec/gdm-rh-security-token-helper
root      5257  0.0  0.0 SN   00:00:00 /usr/bin/python -tt /usr/sbin/yum-updatesd
root     13217  0.1  0.0 SN   00:00:00  \_ /usr/bin/python -tt /usr/libexec/yum-updatesd-helper --check --dbus
root      5259  0.0  0.0 SN   00:00:00 /usr/libexec/gam_server

最后是一些日志

DMESG:+Free pages:    42316788kB (42309540kB HighMem)
DMESG:+Active:28543 inactive:5737934 dirty:167940 writeback:0 unstable:0 free:10579197 slab:92371 mapped-file:5498 mapped-anon:21203 pagetables:727
DMESG:+DMA free:3588kB min:68kB low:84kB high:100kB active:12kB inactive:0kB present:16384kB pages_scanned:56981 all_unreclaimable? yes
DMESG:+lowmem_reserve[]: 0 0 880 65520
DMESG:+DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
DMESG:+lowmem_reserve[]: 0 0 880 65520
DMESG:+Normal free:3660kB min:3756kB low:4692kB high:5632kB active:424kB inactive:44kB present:901120kB pages_scanned:621593 all_unreclaimable? yes
DMESG:+lowmem_reserve[]: 0 0 0 517120
DMESG:+HighMem free:42309540kB min:512kB low:69552kB high:138592kB active:113840kB inactive:22951588kB present:66191360kB pages_scanned:0 all_unreclaimable? no
DMESG:+lowmem_reserve[]: 0 0 0 0
DMESG:+DMA: 1*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 1*512kB 1*1024kB 1*2048kB 0*4096kB = 3588kB
DMESG:+DMA32: empty
DMESG:+Normal: 1*4kB 23*8kB 1*16kB 0*32kB 0*64kB 1*128kB 1*256kB 0*512kB 1*1024kB 1*2048kB 0*4096kB = 3660kB
DMESG:+HighMem: 1*4kB 0*8kB 0*16kB 1*32kB 0*64kB 1*128kB 1*256kB 1*512kB 1*1024kB 0*2048kB 10329*4096kB = 42309540kB
DMESG:+5745312 pagecache pages
DMESG:+Swap cache: add 0, delete 0, find 0/0, race 0+0
DMESG:+Free swap  = 5406712kB
DMESG:+Total swap = 5406712kB
DMESG:+Free swap:       5406712kB
DMESG:+16777216 pages of RAM
DMESG:+16547840 pages of HIGHMEM
DMESG:+332415 reserved pages
DMESG:+5728571 pages shared
DMESG:+0 pages swap cached
DMESG:+167940 pages dirty
DMESG:+0 pages writeback
DMESG:+5498 pages mapped
DMESG:+92360 pages slab
DMESG:+727 pages pagetables
DMESG:+Out of memory: Killed process 12751, UID 503, (bash).
DMESG:+top invoked oom-killer: gfp_mask=0xd0, order=0, oomkilladj=0
DMESG:+ [<c045b9c3>] out_of_memory+0x72/0x1a3
DMESG:+ [<c045cf46>] __alloc_pages+0x24e/0x2cf
DMESG:+ [<c04a8ef3>] proc_info_read+0x0/0x96
DMESG:+ [<c045cfee>] __get_free_pages+0x27/0x33
DMESG:+ [<c04a8f2b>] proc_info_read+0x38/0x96
DMESG:+ [<c04a8ef3>] proc_info_read+0x0/0x96
DMESG:+ [<c04770e5>] vfs_read+0x9f/0x141
DMESG:+ [<c047756b>] sys_read+0x3c/0x63
DMESG:+ [<c0404f4b>] syscall_call+0x7/0xb
DMESG:+ =======================
linux centos5 oom-killer
  • 1 个回答
  • 207 Views
Martin Hope
Curtis Kelsey
Asked: 2016-07-13 07:32:48 +0800 CST

在 CentOS 5.11 上安装 R 3.2.3 包 igraph

  • 1

** 而不是投反对票,而是表达如何改进帖子。谢谢!

我正在尝试为安装在 CentOS 5.11 系统上的 R (3.2.3) 安装 igraph。错误的尾部如下所示:

foreign-graphml.c:65: warning: excess elements in struct initializer
foreign-graphml.c:65: warning: (near initialization for ‘blankEntityStruct’)
foreign-graphml.c: In function ‘igraph_read_graph_graphml’:
foreign-graphml.c:1330: error: ‘XML_PARSE_HUGE’ undeclared (first use in this function)
foreign-graphml.c:1330: error: (Each undeclared identifier is reported only once
foreign-graphml.c:1330: error: for each function it appears in.)
make: *** [foreign-graphml.o] Error 1
ERROR: compilation failed for package ‘igraph’
* removing ‘/usr/lib64/R/library/igraph’

The downloaded source packages are in
    ‘/tmp/RtmpBDaixr/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning message:
In install.packages("igraph") :
  installation of package ‘igraph’ had non-zero exit status

XML_PARSE_HUGE 对我来说很突出。快速谷歌发现它直到 libxml2 2.7.3 ( https://lists.nongnu.org/archive/html/igraph-help/2015-10/msg00022.html ) 才出现。看起来我需要在下面的链接中为之前在本网站上遇到过的机器构建一个更新的版本。

在 CentOS 5.X 上安装 libxml2 2.7.X

当我为它运行安装时

yum localinstall --nogpgcheck /usr/src/redhat/RPMS/x86_64/libxml2-2.7.8-1.x86_64.rpm

我把这个放在尾巴上

Error: Missing Dependency: libxml2.so.2 is needed by package eel2-2.16.1-1.el5.i386 (installed)
Error: Missing Dependency: libxml2.so.2 is needed by package evolution-data-server-1.12.3-18.el5.i386 (installed)
Error: Missing Dependency: libxml2.so.2 is needed by package 1:gnome-utils-2.16.0-5.el5.i386 (installed)
Error: Missing Dependency: libxml2.so.2 is needed by package libxslt-1.1.17-4.el5_8.3.i386 (installed)
Error: Missing Dependency: libxml2.so.2 is needed by package 7:kdenetwork-3.5.4-13.el5_6.1.i386 (installed)
Error: Missing Dependency: libxml2.so.2 is needed by package gnome-media-2.16.1-3.el5.i386 (installed)
Error: Missing Dependency: libxml2.so.2 is needed by package gnome-pilot-2.0.13-16.i386 (installed)
Error: Missing Dependency: libxml2.so.2 is needed by package 1:control-center-2.16.0-16.el5.i386 (installed)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
                    package-cleanup --dupes
                    rpm -Va --nofiles --nodigest

我想也许它想要一个 32 位包

rpmbuild --target i386 -ba /usr/src/redhat/SPECS/libxml2.spec
yum localinstall --nogpgcheck /usr/src/redhat/RPMS/i386/libxml2-2.7.8-1.i386.rpm 

哪个尾巴

Error: Missing Dependency: libxml2.so.2()(64bit) is needed by package gtkhtml2-2.11.0-3.x86_64 (installed)
Error: Missing Dependency: libxml2.so.2()(64bit) is needed by package nautilus-2.16.2-10.el5.x86_64 (installed)
Error: Missing Dependency: libxml2.so.2()(64bit) is needed by package libgnome-java-2.12.4-3.fc6.x86_64 (installed)
Error: Missing Dependency: libxml2.so.2()(64bit) is needed by package nautilus-cd-burner-2.16.0-7.el5.x86_64 (installed)
Error: Missing Dependency: libxml2.so.2()(64bit) is needed by package gnome-spell-1.0.7-3.1.x86_64 (installed)
Error: Missing Dependency: libxml2.so.2()(64bit) is needed by package 1:gnome-utils-2.16.0-5.el5.x86_64 (installed)
Error: Missing Dependency: libxml2.so.2()(64bit) is needed by package gok-1.2.0-2.el5.x86_64 (installed)
Error: Missing Dependency: libxml2.so.2()(64bit) is needed by package libglade-java-2.12.5-3.fc6.x86_64 (installed)
Error: Missing Dependency: libxml2.so.2()(64bit) is needed by package evolution-webcal-2.7.1-6.x86_64 (installed)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
                    package-cleanup --dupes
                    rpm -Va --nofiles --nodigest

尝试使用 --skip-broken 和 package-cleanup 时我有点紧张,因为我需要有一个可靠的迁移补丁到/从更改(它在生产机器上)而且我并不精通这一切就像我应该的那样。我可能必须启动一个虚拟机才能继续前进。最终,我所寻找的只是在系统上运行的 R igraph 包。有没有人有任何想法?

centos centos5
  • 1 个回答
  • 540 Views
Martin Hope
Aleksandar
Asked: 2016-05-07 07:49:19 +0800 CST

Netavis 无法启动

  • 0

我在 CentOS 5.11 上安装了 Netavis Observer 4.3。通过网络连接的用户可以登录并且一切正常,但是由于某些权限错误,服务器上的客户端无法启动。它说:

安装程序已尝试在您的计算机上找到合适的位置来安装该产品,但是它没有足够的权限或发现可用磁盘空间太少。

使用的目录:

/家/查看

请更正问题并重新安装。

我检查了磁盘空间,并且有足够的可用空间。这是某种权限错误。我尝试更改此路径中的权限,但没有成功,它一遍又一遍地显示相同的消息。

permissions centos5
  • 1 个回答
  • 151 Views
Martin Hope
Jeremy Dover
Asked: 2015-11-03 14:20:33 +0800 CST

在 CentOS 上,rpcinfo 在以 root 身份运行时使用了不寻常的源端口

  • 0

在 CentOS 5.10 上使用 rpcinfo 命令进行一些测试时,我注意到一个有趣的特性。以root运行时,连接发生后,查看socket表netstat -natup显示连接的源端口小于1024;我见过低至 885 和高至 923 的值。如果您以非特权用户身份运行,则不会发生此行为;在这种情况下,您的源端口是普通的临时端口。我正在运行 glibc-common-2.5-118.el5_10.2 RPM 中打包的 rpcinfo 版本。

我还在 CentOS 7.0.1406 中验证了这种行为(rpcinfo 打包在 rpcbind-0.2.0-23.el7.x86_64 中)。

我的问题:

  1. 有谁知道为什么会发生这种行为的原因?以非 root 用户身份运行时,rpcinfo 命令可以从临时端口正常运行。

  2. 这种行为是否存在任何潜在的安全漏洞?我的直觉说不,因为它只有在以 root 身份运行时才会发生。

centos5
  • 1 个回答
  • 129 Views
Martin Hope
Itai Ganot
Asked: 2015-01-21 06:09:44 +0800 CST

Linux CentOS:服务器抛出奇怪的错误信息,你能推测出原因吗?

  • 0

我公司有一台服务器,它是生产环境的一部分。在服务器上有一个 ActiveMQ 服务器正在运行。我登录到 Active-MQ UI 并尝试创建一个新队列。当我这样做时,我收到了这条消息:

HTTP ERROR: 500

/workspace/development/org/apache/activemq/5.1.0/data/kr-store/data/data-container-roots-2 (Read-only file system)
RequestURI=/admin/createDestination.action

Caused by:

java.io.FileNotFoundException: /workspace/development/org/apache/activemq/5.1.0/data/kr-store/data/data-container-roots-2 (Read-only file system)
    at java.io.RandomAccessFile.open(Native Method)
    at java.io.RandomAccessFile.(RandomAccessFile.java:212)
    at org.apache.activemq.kaha.impl.data.DataFile.getRandomAccessFile(DataFile.java:51)
    at org.apache.activemq.kaha.impl.data.SyncDataFileWriter.storeItem(SyncDataFileWriter.java:71)

我知道“找不到文件”消息,但它似乎与问题没有直接关系。

为了解决这个问题,我登录到服务器并运行了一些测试,在这些测试中我发现我尝试运行的一些基本命令失败并出现相同的错误:

[root@ctrl3 kr-store]# touch 1
touch: cannot touch `1': Read-only file system
[root@ctrl3 /]# chgrp users /workspace
chgrp: changing group of `/workspace': Read-only file system
[root@ctrl3 kr-store]# chown peeradmin.users /workspace
chown: changing ownership of `/workspace': Read-only file system
[root@ctrl3 kr-store]# ls -ld data
drwxrwxr-x 2 peeradmin users 4096 AUG 12 12:27 data
[root@ctrl3 kr-store]# chmod o+w data/
chmod: changing permissions of `data/': Read-only file system

如果我没记错的话,上次遇到这样的错误,后来我们发现是磁盘I/O问题,但如果不是这样,那还能是什么?

编辑#1:

[root@ctrl3 kr-store]# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 ro,data=ordered 0 0
/dev /dev tmpfs rw 0 0
/proc /proc proc rw 0 0
/sys /sys sysfs rw 0 0
/proc/bus/usb /proc/bus/usb usbfs rw 0 0
devpts /dev/pts devpts rw 0 0
/dev/sda7 /tmp ext3 rw,data=ordered 0 0
/dev/VolGroup00/LogVol00 /workspace ext3 ro,data=ordered 0 0
/dev/sda5 /usr ext3 rw,data=ordered 0 0
/dev/sda3 /var ext3 rw,data=ordered 0 0
/dev/sda1 /boot ext3 rw,data=ordered 0 0
tmpfs /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
/etc/auto.misc /misc autofs rw,fd=7,pgrp=3795,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,fd=13,pgrp=3795,timeout=300,minproto=5,maxproto=5,indirect 0 0
atlas.sj.company.com:/volumes/atlas_vol/NFS1 /nfs1 nfs rw,noatime,vers=3,rsize=32768,wsize=32768,soft,intr,proto=tcp,timeo=600,retrans=2,sec=sys,addr=atlas.sj.company.com 0 0
atlas.sj.company.com:/volumes/atlas_vol/NFS1/NIS/home /home nfs rw,noatime,vers=3,rsize=32768,wsize=32768,soft,intr,proto=tcp,timeo=600,retrans=2,sec=sys,addr=atlas.sj.company.com 0 0
atlas.sj.company.com:/volumes/atlas_vol/NFS1 /nfs1 nfs rw,noatime,vers=3,rsize=1048576,wsize=1048576,hard,intr,proto=tcp,timeo=600,retrans=2,sec=sys,addr=atlas.sj.company.com 0 0
atlas.sj.company.com:/volumes/atlas_vol/NFS1/NIS/home /home nfs rw,noatime,vers=3,rsize=1048576,wsize=1048576,hard,intr,proto=tcp,timeo=600,retrans=2,sec=sys,addr=atlas.sj.company.com 0 0

斯文:日志什么也没说:

[root@ctrl3 kr-store]# cat /var/log/messages |grep -v [xinetd\|snmpd]
[root@ctrl3 kr-store]#

另外,如果什么都不能写入磁盘,那么我猜日志也不能更新。

编辑#2:所以看起来文件系统已经以某种方式损坏了......我是对的吗?

SCSI device sdb: 1953525168 512-byte hdwr sectors (1000205 MB)
sdb: Write Protect is off
sdb: Mode Sense: 00 3a 00 00
SCSI device sdb: drive cache: write back
ext3_abort called.
EXT3-fs error (device dm-0): ext3_journal_start_sb: Detected aborted journal
Remounting filesystem read-only
sd 1:0:0:0: SCSI error: return code = 0x06000000
end_request: I/O error, dev sdb, sector 745962211
printk: 215 messages suppressed.
Buffer I/O error on device dm-0, logical block 51773423
lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 51773424
lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 51773425
lost page write due to I/O error on dm-0

提前致谢,

centos5
  • 1 个回答
  • 204 Views
Martin Hope
Carlos Santos
Asked: 2014-12-31 15:51:08 +0800 CST

递归重命名文件并将它们移动到一个目录中

  • 3

我在 CentOS 中有一个拥有 50 万用户的项目。图片文件/目录结构是这样设置的(是的......我知道):

  • user/0070/这是用户ID / 1000,因此[70000-70999]范围内的所有用户都在此目录内
  • user/0070/70909/这是用户 ID
  • user/0070/70909/p.jpg个人资料图片 (100x100)
  • user/0070/70909/x.jpg全尺寸图片

我将所有内容都移至 CDN,因此我需要将该结构转换为:

  • user/70909.p.jpg个人资料图片 (100x100)
  • user/70909.x.jpg全尺寸图片

当然,在一段时间内实现这一目标的唯一方法是执行一个脚本,将所有文件重命名并移动到一个目录中。有任何想法吗?谢谢!

centos5
  • 1 个回答
  • 69 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve