摘要: gcc编译安装过程1.先安装三个库 gmp mprc mpc 这三个库的源码要到官网去下载1)安装gmp:首 先建立源码同级目录 gmp-build,输入命令,第一次编译不通过,发现缺少一个叫m4的东西 于是就用apt-get下载了一个,继续编译,没有报错。make的时候出现大量信息并且生成一些文件在当前文件夹下,之后用make check检查一下,最后用make install安装2)安装mpfr:首先建立源码文件夹同级目录mpfr-build然后进入该目录输入../mpfr-2.4.2/configure --prefix=/usr/local/mpfr-2.4.2 --with-gmp= 阅读全文
posted @ 2013-08-04 19:43 Monn 阅读(821) 评论(0) 推荐(0)
摘要: Fromthis answerto "Install gcc 4.7 on CentOS [6.x]", the easiest way to getg++4.7, and the required tools and libraries, for CentOS 5.x is via thedevtoolspackage:cd /etc/yum.repos.dwget http://people.centos.org/tru/devtools/devtools.repo yum --enablerepo=testing-devtools-5 install devtools 阅读全文
posted @ 2013-08-04 19:31 Monn 阅读(6009) 评论(0) 推荐(0)
摘要: 首先需要准备需要材料:gcc4.4.2版需要安装gmp4.2.0+和mpfr2.3.0+,到GMP的网站(http://gmplib.org/)上下载gmp-4.3.1.tar.gz 和mprf的网站(http://www.mpfr.org/)上下载mpfr-2.4.2.tar.gz分别解压缩tar zxvf gmp-4.3.1.tar.gztar zxvf mpfr-2.4.2.tar.gz解压之后, 文件夹名称为gmp-4.3.1和mpfr-2.4.2,按照下面步骤安装。1. 安装gmp:#cd gmp-4.3.1# ./configure# make# make check这一步用来查看 阅读全文
posted @ 2013-08-04 18:19 Monn 阅读(1385) 评论(0) 推荐(0)
摘要: About Linux SwappingLinux RAM is composed of chunks of memory called pages. To free up pages of RAM, a “linux swap” can occur and a page of memory is copied from the RAM to preconfigured space on the hard disk. Linux swaps allow a system to harness more memory than was originally physically availabl 阅读全文
posted @ 2013-08-04 12:57 Monn 阅读(534) 评论(0) 推荐(0)
摘要: linux修改默认语言编辑/etc/sysconfig/i18n这个文件(不存在就新建一个),原内容如下:LANG="en_US.UTF-8"SYSFONT="latarcyrheb-sun16" 阅读全文
posted @ 2013-08-04 10:50 Monn 阅读(185) 评论(0) 推荐(0)
摘要: 建站过程中有时候我们需要做这些设置 1.访问www 直接重定向到没有www上或者反过来,那么怎么通过.htaccess文件来实现呢。1.首先服务器要支持Rewrite重写2.创建.htaccess文件 当然如果你不知道个文件是做什么的你可以查看http://httpd.apache.org/docs/1.3/howto/htaccess.html那我们开始吧,在文件的顶部我们要写如下代码:RewriteEngineOnOptions+FollowSymLinks1.如果你想将所有没有www的页面重定向到有www的上面你们复制下面的代码到.htaccess文件中 Then if you want 阅读全文
posted @ 2013-07-31 09:31 Monn 阅读(479) 评论(0) 推荐(0)
摘要: wget freevps.us/downloads/bench.sh -O - -o /dev/null|bash 阅读全文
posted @ 2013-07-30 18:17 Monn 阅读(190) 评论(0) 推荐(0)
摘要: 如何VPS也可以拥有像windows一样图形窗口,这里写个教程,据说xwindows是一个比微软windows还强大的linux图形界面,怎样强大,我也是听说的,你可以自己去试,然后告诉我。vps安装Xwindows方法:Linux VPS安装X Window System和GNOME,只要1行命令: wget http://www.CTOHome.com/linux-vps-pack/xwindow.sh;sh ./xwindow.sh; 复制上面命令并粘贴到您的vps控制台里上,它会自动安装,根据vps性能好坏,5-30分钟安装完成。 如果安装不成功,请重装centos5-x86的操作系统 阅读全文
posted @ 2013-07-27 00:47 Monn 阅读(1805) 评论(0) 推荐(0)
摘要: 在我们使用CentOS系统的时候,也许时区经常会出现问题,有时候改完之后还是会出错,下面我们就来学习一种方法来改变这个状况。如果没有安装,而你使用的是 CentOS系统 那使用命令 yum install ntp然后:ntpdate us.pool.ntp.org 。因为CentOS系统是用rhas的源码再编译的,很多地方是完全一样的。rhas5的时区是以文件形式存在的,当前的时区文件是在/etc/localtime那么其他时区的文件存放在哪里呢?在/usr/share/zoneinfo下我们用东八区,北京,上海的时间#cp -f /usr/share/zoneinfo/Asia/Shangh 阅读全文
posted @ 2013-07-14 01:30 Monn 阅读(215) 评论(0) 推荐(0)
摘要: #!/bin/shapp="/home/user/myapp.exe"while truedo pid=`ps ax | grep mono | grep -v grep` test -z "$pid" && echo "$app已崩溃,Restart!!!" && mono $app sleep 5done 阅读全文
posted @ 2013-05-29 18:47 Monn 阅读(707) 评论(0) 推荐(0)