Articles of centos5

my.cnf值不适用 – 在centos Lamp上优化mysql

我检查了my.cnf的其他情况,并发现只有一个发生/etc/my.cnf。 然后我继续解决我的价值观,如query_cache_size等 在保存和重新启动之后,my.cnf中的值还没有被应用。 即时通讯使用Centos 5.6,Apache 2上的LAMP,MySQL 5.0.77 任何帮助? 这里是/etc/init.d/mysyld的内容 #!/bin/bash # # mysqld This shell script takes care of starting and stopping # the MySQL subsystem (mysqld). # # chkconfig: – 64 36 # description: MySQL database server. # processname: mysqld # config: /etc/my.cnf # pidfile: /var/run/mysqld/mysqld.pid # Source function library. . /etc/rc.d/init.d/functions # Source […]

我如何在Ubuntu 10.4上启用telnet

我想从主机10.0.1.91(centos)telnet到主机10.0.11.162(Ubuntu的)。 当我尝试连接到Ubuntu主机时,我得到: telnet 10.0.11.162 4949 Trying 10.0.11.162… Connected to abc (10.0.11.162). Escape character is '^]'. Connection closed by foreign host. 在主机10.0.11.162(Ubuntu) ps -ef | grep telnet root 6682 4564 0 00:33 pts/0 00:00:00 grep –color=auto telnet 但telnetd已经在最新版本。 apt-get install telnetd Reading package lists… Done Building dependency tree Reading state information… Done telnetd is already the […]

CentOS无法inputphpmyadmin

我正在使用CentOS 5.5,MySQL 5.1,PHP 5.3,phpmyadmin 3.4.5,我已经设置了我的mysql密码 >mysql update mysql.user Password="mypassword" where User="root" 并在phpmyadmin /库/ config.default.php 做: $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = 'mypassword'; 注意:2 password是一样的。 service mysqld restart service httpd restart 所有返回正常。 然后在phpmyadminlogin面板中,我键入; username: root password: mypassword input,它总是刷新login面板,永远不会login到数据库页面。 没有错误提示。 哪里有问题?

我如何确认我的CentOS服务器是否支持多个CPU?

CentOS 5.8 | VMWare的 我有一台服务器运行CentOS 5.8的强化版本。 我一直在使用一个CPU,并计划添加另一个(通过VMWare)。 当我运行uname时,我看到SMP,这让我相信系统已经在使用多CPU内核: [root@foobox ~]# uname -a Linux box.foo.int 2.6.18-308.1.1.el5 #1 SMP Wed Mar 7 04:17:30 EST 2012 i686 i686 i386 GNU/Linux 但是,如果我检查/boot/grub/grub.conf,我看到: default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.18-308.1.1.el5) root (hd0,0) kernel /vmlinuz-2.6.18-308.1.1.el5 ro root=LABEL=/ clocksource=tsc noapic nolapic initrd /initrd-2.6.18-308.1.1.el5.img title CentOS (2.6.18-308.1.1.el5PAE) root (hd0,0) kernel /vmlinuz-2.6.18-308.1.1.el5PAE ro root=LABEL=/ […]

/ tmp充斥着“.myapp”文件

在我的新服务器(专用,CentOs5)上,每分钟在/ tmp下创build2个或3个.myapp文件(如“51b9dc4cc246f.myapp”,〜500个Mo),以惊人的速度填满我的硬盘。 在crontab -e没有任何东西。 任何想法可以从哪里来? 非常感谢

Apache不能更改监听IP地址

我无法让Apache监听特定的IP地址。 这是一个本地的networking服务器,不是公共的。 我在CentOS 5.11上使用Apache 2.2。 默认configurationhttpd.conf工作得很好,但只能监听服务器的静态IP地址10.0.0.101:80 。 我在httpd.conf的末尾添加了Listen 10.0.0.103:80 ,但是得到错误: Starting httpd: (99)Cannot assign requested address: make_sock: could not bind to address 10.0.0.103:80 我正在按照https://www.howtoforge.com/high_availability_heartbeat_centos上的说明制作高可用性群集。 如果我只能让Apache开始使用这个地址,那我就是个好主意。 我正在使用这个旧版本的CentOS,因为我试图使用旧硬件来代替它。 我在Google,CentOS网站和Apache的网站上连续搜寻了四个小时,发现没有解决办法。

新问题:在CentOS 5.5上无法使用“服务”命令

像这样的页面说,你可以 service iptables restart …但我得到一个command not found错误。 我尝试了yum install service但没有这样的软件包。 我如何重新启动服务?

CentOS5&OpenSSH在sshd_config中不能识别'HashKnownHosts'和'StrictHostKeyChecking'指令

我正在从CentOS 5运行OpenSSH(4.3p2)的最新版本。当我尝试使用/etc/init.d/sshd start启动服务器/etc/init.d/sshd start ,这是bash的输出: Starting sshd: /etc/ssh/sshd_config: line 130: Bad configuration option: HashKnownHosts /etc/ssh/sshd_config: line 134: Bad configuration option: StrictHostKeyChecking /etc/ssh/sshd_config: terminating, 2 bad configuration options 我的手册页为sshd表示它支持哈希known_hosts文件,但手册页我有sshd_config没有提到这些指令之一。 HSSKnownHosts和StrictHostKeyChecking包含在RHEL / CentOS维护的OpenSSH版本中吗? 如果没有,我可以使用哪些解决方法? 我可以从源码安全地安装最新的稳定版本的OpenSSH吗? 我不愿意以纯文本的方式离开known_hosts。

是否有可能重新编译颠覆而不删除当前在CentOS中的存储库?

我想重新编译启用http签出后,我安装霓虹灯 yum install neon-devel 然后我编译 ./configure –prefix=/usr –with-apxs=/usr/sbin/apxs –with-apr=/usr/bin/apr-config make make install 当我重新安装它删除我的数据库中的所有数据,我如何重新编译svn启用霓虹灯插件,而不删除我当前的数据。

在CentOS 5上安装p7zip

我需要一些帮助在这里,我正在一个Windows PC上工作,SSH到我的服务器。 我想安装p7zip(linux命令行版本7zip): http : //sourceforge.net/projects/p7zip/files/p7zip/9.20.1/ 我在哪抓包? 我没有必要在我的服务器上自己做这个,我很乐意把它放在那里,并让它运行…有人可以帮我吗? 谢谢