
centos服务器
friends
这个作者很懒,什么都没留下…
展开
-
linux下卸载mysql rpm安装方式和源码安装方式的两种方法
转自http://hi.baidu.com/myphpzone/blog/item/562e496f0dfbb1d680cb4a2d.htmllinux下MySQL卸载方法一.源码安装的卸载方法:到源码目录,如果可以运行make uninstall就可以卸载。如果没有,就直接删除。如果是./configure --prefix指定了目录用 rm -rf 目录名 删除转载 2011-12-17 15:12:54 · 4324 阅读 · 0 评论 -
解决 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)由于mysql 默认的mysql.sock 是在/var/lib/mysql/mysql.sock,但linux系统总是去/tmp/mysql.sock查找,所以会报错网上找的方法 他的链接 h原创 2011-12-14 21:00:36 · 1936 阅读 · 0 评论 -
解决linux下主机名变bogon的问题
早上起来发现 linux主机名变为bogonbogon是指那些不该出现在internet路由表中的地址吧这些地址应该包括:1,私有地址如10,172.16-32,192.168.....2,还未正式分配出去的地址经过google找到修改名称的办法一:使用hostname命令[root@test ~]# hostname yourname这样只是临时更原创 2011-12-14 11:16:51 · 10641 阅读 · 0 评论 -
win7 CentOS 6.0 无法访问网络,使用ifconfig发现eth0网卡并没有IP等相关配置
1、指派静态IP地址#ifconfig eth0 192.168.1.11 netmask 255.255.255.02、修改网关 首先ping下192.168.1.1,是否能通,不能通重新设置上边的ip地址 #route add default gw 192.168.1.13、重启网卡 #ifconfig eth0 down #ifconfig原创 2011-12-14 10:56:49 · 4845 阅读 · 0 评论 -
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for Se
#vi /etc/httpd/httpd.conf #这是我的安装目录找到#ServerName www.example.com:80 把#去掉,再重启apache即可。原创 2011-12-13 21:32:12 · 629 阅读 · 0 评论 -
linux centos 开启80、22、3306端口
1、设定[root@localhost ~]# /sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT [root@localhost ~]# /sbin/iptables -I INPUT -p tcp --dport 22 -j ACCEPT [root@localhost ~]# /sbin/iptables -I INPUT -p原创 2011-12-13 10:53:21 · 1585 阅读 · 0 评论 -
安装 Gd库错误 [gd_png.lo] Error 1正确的解决办法
首先,严重鄙视下有些人发布错误的解决办法make[2]: *** [gd_png.lo] Error 1make[2]: Leaving directory `/tmp/gd-2.0.35'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/tmp/gd-2.0.35'make: *** [all原创 2011-12-13 20:01:46 · 7275 阅读 · 0 评论 -
centos6.0安装libpng时出现configure: error: zlib not installed解决办法
centos6.0安装libpng 出现configure: error: zlib not installed,可我明明安装了zlib。网上查找的两个方法:1、进入zlib目录,执行 make clean命令 重新配置zlib # ./configure (后面不要有参数了) #make && make install 安装li原创 2011-12-13 12:19:51 · 6135 阅读 · 0 评论 -
checking for termcap functions library... configure: error: No curses/termcap library found
安装mysql时,出现checking for termcap functions library... configure: error: No curses/termcap library found解决办法:下载安装相应软件包一、系统是RedHat系列:yum list|grep ncursesyum -y install ncurses-develyum i原创 2011-12-13 22:24:27 · 2482 阅读 · 0 评论 -
mysql_install_db无法创建var目录
编译安装完mysql用mysql_install_db初始化数据库怎么也创建不了var目录,也没有任何报错信息。于是寻求google找到了答案,原来是系统中已经安装了mysql的rpm包解决方案如下:#rpm -qa | grep mysql先查找是否有安装mysql,如果有提示那么卸载mysql果然找到了 mysql-libs-5.1.47-4.el6.i686原创 2011-12-14 00:06:51 · 2974 阅读 · 1 评论 -
centos6 lamp环境源代码编译
*************************************************win7下的vm8.0虚拟机centos6.0(最小安装)filezilla 上传软件参考教材:兄弟连李明老师的lamp编译视频教程,在此感谢李明老师的详细教程关于解压的Shell脚本和编译安装的脚本下载地址:http://download.youkuaiyun.com/detail/wang原创 2011-12-19 09:44:50 · 2263 阅读 · 0 评论 -
apache重启错误: httpd: Syntax error on line 57 of /etc/httpd/httpd.conf: Cannot load /usr/local/apache2/
在重启apache时出现一下错误:httpd: Syntax error on line 57 of /etc/httpd/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: libltdl.so.3: cannot open shared object file: No such file原创 2011-12-19 00:20:29 · 61316 阅读 · 2 评论 -
httpd: Could not reliably determine the server's fully qualified domain name解决
解决方法: #检查端口 netstat -tnl,如果没开启80端口 vi /etc/httpd/httpd.conf 将里面的#ServerName localhost:80注释去掉即可。原创 2011-12-19 00:18:55 · 817 阅读 · 0 评论 -
最小安装centos6.0局域网用户 联网方法
宿主机系统:win7旗舰版虚拟机:VMware Workstation 8.0服务器系统: centos6.0网络:局域网现在的情况:centos与宿主机之间能相互ping通,网络模式为桥接,但centos就是连不上网。解决办法(三步):1、添加ip地址[root@localhost ~]# vi /etc/sysconfig/network-scrip原创 2011-12-12 23:42:52 · 2674 阅读 · 0 评论