Linux+Apache+Mysql+Php详细安装文档
所需软件源代码包:
httpd-2.2.4.tar.gz mysql-5.0.27.tar.gz php-5.2.1.tar.bz2
freetype-2.3.2.tar.gz gd-2.0.34.tar.gz jpegsrc.v6b.tar.gz
libpng-1.2.8.tar.bz2 libxml2-2.6.24.tar.bz2 zlib-1.2.2.tar.gz
安装顺序:apache -> mysql -> freetype -> jpegsrc.v6b -> libpng -> libxml -> zlib -> gd -> php ( freetype,jpegsrc.v6b,libxml,zlib,libpng 的安装顺序不限)
约定目录:/usr/local/src 软件源代码包存放位置
/usr/local/software_name 源码包编译安装位置
安装命令:
1 apache
# cd /usr/local/src
# t ar xzvf http-2.2.4.tar.gz
# cd http-2.2.4
# ./configure \
"--prefix=/usr/local/apache2" \
"--enable-module=so" \
"--enable-deflate=shared" \
"--enable-expires=shared" \
"--enable-rewrite=shared" \
"--enable-static-support" \
"--enable-static-htpasswd" \
"--enable-static-htdigest" \
"--enable-static-rotatelogs" \
"--enable-static-logresolve" \
"--enable-static-htdbm" \
"--enable-static-ab" \
"--enable-static-checkgid" \
"--disable-userdir"
# make
# make install
# /usr/local/apache2/bin/apachectl start
出现错误的话就是因为域名的关系,直接从http.conf里面修改把域名改成本地IP
# /usr/local/apache2/bin/apachectl stop
2. mysql
# tar xzvf mysql-5.0.27.tar.gz
# cd mysql-5.0.27
# ./configure \
&n
相关文档:
1、Bios Security
一定要给Bios设置密码,以防通过在Bios中改变启动顺序,而可以从软盘启动。这样可以阻止别人试图用特殊的启动盘启动你的系统,还可以阻止别人进入Bios改动其中的设置(比如允许通过软盘启动等)。
2、LILO Security
在"/etc/lilo.conf"文件中加入下面三个参数:time-out,restricted,password。这三个 ......
以ubuntu为例,字体文件为nfont.ttf
sudo mkdir /usr/share/fonts/myfonts /*建立myfonts的自定义目录*/
sudo cp nfont.ttf /usr/share/fonts/myfonts /*拷贝nfont.ttf到自定义目录*/
sudo fc-cache -fv
然后就OK了!
......
1.在shell脚本中会用到if判断,事实上就是test加参数执行的结果,比如:
if test -f /xxx ;then YYY ;fi,但是还有另一种写法,那就是if [ abc ];then YYY,实际上“[”也是一个命令,用whereis [可以证实,该“[”程序中必然要有一个“]”作为参数,然后判断$1到"]"之间的参数的 ......
SLES10 Linux(kernel-2.6.16.21-0.8)平台下搭建Fortran并行编译环境
一.Fortran编译器的安装
Linux安装盘一般都自带有Fortran编译器,在SuSe9.1以前均带有g77,在Suse9.2以后为gfortran。但是,相对来说,由于g77和gfortran的编译的程序运行效率不是很高,所以都会选择再安装专业的Fortran编译器。
主流的Fortran 90/ ......
官方网站: http://fedoraproject.org/
在这儿选择需要的光盘格式镜像: http://fedoraproject.org/en/get-fedora-options#formats
i386体系: http://download.fedoraproject.org/pub/fedora/linux/releases/13/Fedora/i386/iso/Fedora-13-i386-DVD.iso
x86_64体系: http://download.fedoraproject.org/pub/fedora/lin ......