06 2012 档案
CentOS装LAMP服务器(Apache2+PHP5+MySQL)
摘要:1.重要提示: 在本教程中使用的主机名为server1.example.com,IP 地址为 192.168.0.100 。这些设置会与具体安装的设置有所不同,所以你必须在你的安装过程中进行替代。 2.安装MySQL 5.0 打开终端,输入:yum install mysql mysql-server 然后为MySQL创建系统启动链接(这样在系统启动时,MySQL会自动启动),在终端输入命令:chkconfig --levels 235 mysqld on/etc/init.d/mysqld start 为MySQL root帐户设置密码: mysql_secure_install... 阅读全文
posted @ 2012-06-28 15:12 Romen 阅读(189) 评论(0) 推荐(0)
我是懒人
摘要:yum install -y gcc gcc-c++ make autoconf libtool-ltdl-devel gd-devel freetype-devel libxml2-devel libjpeg-devel libpng-devel openssl-devel curl-devel patchlibmcrypt-devel libmhash-devel ncurses-devel sudo bzip2 阅读全文
posted @ 2012-06-28 14:33 Romen 阅读(164) 评论(0) 推荐(0)
centos6.2更新yum源
摘要:# 备份# mv /etc/yum.repos.d/CentOS-Base.repo{,.bak}# 修改# vi /etc/yum.repos.d/CentOS-Base.repoConfig代码 #CentOS-Base.repo##ThemirrorsystemusestheconnectingIPaddressoftheclientandthe#updatestatusofeachmirrortopickmirrorsthatareupdatedtoand#geographicallyclosetotheclient.YoushouldusethisforCentOSupdates#u 阅读全文
posted @ 2012-06-27 10:32 Romen 阅读(232) 评论(0) 推荐(0)
更新centos源
摘要:创建/etc/yum.repos.d/CentOS-Base.repo文件,定义yum更新源,www.linuxidc.com这里使用的是上海交大的CentOS更新源[root@linux-a ~]# vi /etc/yum.repos.d/CentOS-Base.repo [base] name=CentOS-5-Base #mirrorlist=http://mirrorlist.centos.org/?release=$releasever5&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/$ 阅读全文
posted @ 2012-06-27 09:11 Romen 阅读(1043) 评论(0) 推荐(0)
[转载]利用CSS显示隐藏元素
摘要:My idea was to addposition:relativeto the link, in order to allow thespanelement inside to position absolutely respect the parent link. This code has been tested in Ie5.5, Opera7.11 and Mozilla 1.4 and works fine. Solved ie bug adding some z-index, but with the modifications done this technique will 阅读全文
posted @ 2012-06-14 22:46 Romen 阅读(173) 评论(0) 推荐(0)
HTML动态时间代码
摘要:<div id="nowDiv"><script> function show(){ var date = new Date(); //日期对象 var now = ""; now = date.getFullYear()+" ."; //读英文就行了 now = now + (date.getMonth()+1)+" ."; //取月的时候取的是当前月-1如果想取当前月+1就可以了 now = now + date.getDate()+"<br>"; now 阅读全文
posted @ 2012-06-14 22:40 Romen 阅读(2889) 评论(0) 推荐(0)
[转载]IE中的条件注释
摘要:IE中的条件注释一、条件注释简介IE中的条件注释(Conditional comments)对IE的版本和IE非IE有优秀的区分能力,是WEB设计中常用的hack方法。条件注释只能用于IE5以上。如果你安装了多个IE,条件注释将会以最高版本的IE为标准。条件注释的基本结构和HTML的注释(<!– –>)是一样的。因此IE以外的浏览器将会把它们看作是普通的注释而完全忽略它们。IE将会根据if条件来判断是否如解析普通的页面内容一样解析条件注释里的内容。二、条件注释属性gt : greater than,选择条件版本以上版本,不包含条件版本lt : less than,选择条件版本以下版 阅读全文
posted @ 2012-06-14 01:15 Romen 阅读(206) 评论(0) 推荐(0)
显卡驱动与卸载——如何安装*.run文件
摘要:安装:.run是一个脚本,可以用如下几个命令安装:chmod 751 ati*.run./ati*.run(或sh ati*.run)卸载:cd /usr/share/aitsh ./fglrx-uninstall.shreboot———OK 阅读全文
posted @ 2012-06-11 13:19 Romen 阅读(426) 评论(0) 推荐(0)
[转载]#2002 - 服务器没有响应 (或者本地 MySQL 服务器的套接字没有正确配置
摘要:google一下,有这样的解决方案:要将 config.inc.php 中$cfg['Servers'][$i]['host'] = ’localhost’;改成 $cfg['Servers'][$i]['host'] = '127.0.0.1';还要添加$cfg['Servers'][$i]['hide_db'] = 'information_schema';//使用登陆后看不见information_schema数据库于是把配置文件里的host改成127.0.0. 阅读全文
posted @ 2012-06-10 15:37 Romen 阅读(2230) 评论(0) 推荐(0)
[转载]Fedora14下MySQL、Apache、PHP、phpMyAdmin的安装步聚
摘要:**********************************************************************先查看下本机是否已安装了MySQL、Apache、PHP、phyMyAdmin,新手最好卸载重装吧。避免出现一些问题。[test1@localhost ~]$ rpm -qa | grep MySQL MySQL-client-5.5.24-1.linux2.6.i386 MySQL-server-5.5.24-1.linux2.6.i386 [root@localhost test1]# rpm -e MySQL-client-5.5.24-1.linu 阅读全文
posted @ 2012-06-10 15:00 Romen 阅读(236) 评论(0) 推荐(0)