服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器
我在RedHat Enterprise Linux 5系统上编译了Ruby 2.0.0p247二进制文件。 当我在同一个系统上require 'net/https'时,一切都很好。 二进制文件已经安装在一个通用的应用程序库上,但是当我尝试从Fedora Core 17系统执行相同的命令时,Ruby会失败,并显示以下错误消息: LoadError: libssl.so.6: cannot open shared object file: No such file or directory – /apps/ruby/2.0.0/lib/ruby/2.0.0/x86_64-linux/openssl.so 当我find它正在抱怨的目录时,文件就在那里(并且它在RedHat系统上正确加载)。 RedHat编译的二进制文件是否与Fedora不兼容? 除了将Ruby安装到特定于Fedora系统的单独位置之外,是否还有其他解决scheme?
希望一个简单的问题,一个简单的答案。 我以为每个网卡都有一个MAC地址。 但是,从下面的IPTraf输出中可以看出,我的eth0和wlan0接口都有多个MAC地址。 为什么我有多个MAC地址? +———– PktsIn ——————— IP In ————- BytesIn —————– InRate ———— PktsOut ——————- IP Out ————- BytesOut ————- OutRate —————-+ | Ethernet HW addr: 0021cccbeed0 on eth0 | | + 3094 0 1355136 2.0 3286 0 894518 5.4 | | Ethernet HW addr: 1cbdb98d4053 on eth0 | | + 3227 0 888314 […]
我有一堆“redirect规则”,我希望Nginx为我做这个看起来像这样的: /news/?p=12312 —> /news/some/new/url.html /news/?p=12fsd312 —> /news/some/new/url.html 我怎样才能让Ngnix将任何访问/news/?p=12312人redirect到/news/some/new/url.html ? 我努力了 rewrite ^/news/?p=123$ /news/some/new/url.html last; 但似乎并不奏效。
我正在寻找一个解决scheme来创build一个tar.bz2文件,并保持原始文件夹的时间戳。 我的解决scheme是“touch -t {original timestamp}”file.tar.bz2 manuel@mfpanzuela:~$ ls -la drwxrwxr-x 2 manuel manuel 4096 nov 13 2013 cmdb manuel@mfpanzuela:~$ tar cjf cmdb.tar.bz2 cmdb -rw-rw-r– 1 manuel manuel 860 may 20 11:28 cmdb.tar.bz2 manuel@mfpanzuela:~$ touch -t 201311130000 cmdb.tar.bz2 manuel@mfpanzuela:~$ ls -la drwxrwxr-x 2 manuel manuel 4096 nov 13 2013 cmdb -rw-rw-r– 1 manuel manuel 860 nov 13 […]
我在我的本地Ubuntu 12.04机器上安装了Asterisk。 启动星号[星号-c]后,我运行命令 netstat -nlpa | grep asterisk 显示的输出是这个 – > tcp 0 0 127.0.0.1:5038 0.0.0.0:* LISTEN 2956/asterisk tcp 0 0 192.168.32.181:8088 0.0.0.0:* LISTEN 2956/asterisk udp 0 0 0.0.0.0:5000 0.0.0.0:* 2956/asterisk udp 0 0 0.0.0.0:5060 0.0.0.0:* 2956/asterisk udp 0 0 0.0.0.0:4520 0.0.0.0:* 2956/asterisk udp 0 0 0.0.0.0:4569 0.0.0.0:* 2956/asterisk unix 2 [ ACC ] STREAM […]
我正在尝试将openssl版本从0.9.8w升级到0.9.8 y,以解决以下安全漏洞CVE-2012-2333,CVE-2013-0166,CVE-2013-0169。 虽然试图升级我面临以下依赖和任何有识之士将不胜感激。 [root@CAM store]# openssl version OpenSSL 0.9.8w 23 Apr 2012 [root@CAM store]# rpm -qa | grep openssl openssl-0.9.8e-22.el5 openssl-0.9.8w-1 [root@CAM store]# rpm -Uvh openssl-0.9.8y-1.i386.rpm error: Failed dependencies: libcrypto.so.6 is needed by (installed) m2crypto-0.16-8.el5.i386 libcrypto.so.6 is needed by (installed) python-libs-2.4.3-46.el5.i386 libcrypto.so.6 is needed by (installed) openldap-2.3.43-25.el5.i386 libcrypto.so.6 is needed by (installed) net-snmp-libs-5.3.2.2-17.el5.i386 libcrypto.so.6 is […]
我想在不同的分区上挂载/ usr目录,并将相同的所有者保存在/ usr目录下的所有文件和子目录中。 我想提一下,这个问题是针对linux ec2机器的,我不能进入单用户运行级别。 可能吗?
我最近参加了关于使用MDT和部署一个组织的速成class。 根据我的理解,这是处理部署的理想方式。 通过MDT,您可以创build一个基础映像,并将其部署到Hyper-V机器。 在此映像中,您可以configurationfunction并安装SilverLight,VC ++ ReDists,networking设置,其他系统设置以及其他不需要不断更新或可能更改的软件包。 从那里你可以在Hyper-V机器上安装这些驱动程序,然后用sysprep来安装Hyper-v Machine,并使用这个.ISO / .WIM镜像并把它推送到WDS,然后networking启动并安装这个镜像。 这是理想的方式,还是真的主要取决于机器的情况或数量/types?
我需要修改文件/etc/httpd/conf.d/phpMyAdmin.conf以允许远程用户(不仅是本地主机)login # phpMyAdmin – Web based MySQL browser written in php # # Allows only localhost by default # # But allowing phpMyAdmin to anyone other than localhost should be considered # dangerous unless properly secured by SSL Alias /phpMyAdmin /usr/share/phpMyAdmin Alias /phpmyadmin /usr/share/phpMyAdmin <Directory "/usr/share/phpMyAdmin/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order Allow,Deny Allow […]
用户可以在bash中隐藏命令历史logging 在命令前追加一个空格 取消设置HISTFILE 如何禁用这个?