Linux启动项
apmd--apmd用来监视系统用电状态,并将相关信息通过syslogd写入日志。也可以用来在电源不足时关机
arpwatch--用来维护以太网物理地址和ip地址的对应关系
atd--运行用户用at命令调度的任务。也在系统负荷比较低时运行批处理任务
autofs--当您需要时自动转载文件系统,而当您不需要时自动卸载
chargen--tcp版本的chargen server
chargen-udp--udp版本的chargen server
crond--周期地运行用户调度的任务。比起传统的unix版本添加了不少属性,而且更安全,配置更简单
daytime--tcp版本的daytime server
daytime-udp--udp版本的daytime server
echo--tcp版本的echo server阅读全文...
yum groupinstall "X Window System" 安装X Window System
yum groupinstall "GNOME Desktop Environment" 安装GNOME Desktop Environment
startx 启动图形界面阅读全文...
安装PHP
#wget http://cn2.php.net/get/php-5.3.8.tar.gz/from/cn.php.net/mirror
#tar -zxvf php-5.3.8.tar.gz
#cd php-5.3.8
#./configure --prefix=/usr/local/php --enable-fpm --with-mcrypt=/usr/local/libmcrypt --with-zlib --enable-mbstring --with-openssl --with-mysql --with-mysqli --with-mysql-sock --with-gd --with-jpeg-dir=/usr/lib --enable-gd-native-ttf --without-sqlite --enable-pdo --with-gettext --with-curl --with-pdo-mysql --enable-sockets --enable-bcmath --enable-xml --with-bz2 --with-gettext --with-snmp --enable-zip --with-snmp --with-png-dir=/usr/lib
出现如下内容,
+--------------------------------------------------------------------+
| License: |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE. By continuing this installation |
| process, you are bound by the terms of this license agreement. |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point. |
+--------------------------------------------------------------------+
Thank you for using PHP.
安装
#make
#make install
# wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.12.tar.gz
# tar zxvf pcre-8.12.tar.gz
# cd pcre-8.12
# ./configure --prefix=/usr/local/webserver/pcre
&nbs阅读全文...
@关闭SELinux
#vi /etc/selinux/config
设置: SELINUX="disabled"
@升级必备程序
#yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers libevent-devel libtool-ltdl libtool-ltdl-devel阅读全文...
@安装LibMMSeg
#wget http://www.coreseek.cn/uploads/csft/3.2/mmseg-3.2.14.tar.gz
#tar zxf mmseg-3.2.14.tar.gz
#cd mmseg-3.2.14
#./configure --prefix=/usr/local/webserver/mmseg
注意看是否有
#make
出错:cannot find input file: src/Makefile.inaclocal
解决:
#aclocal
#libtoolize --force 运行后有一个错误,不用管它。
#automake --add-missing
#autoconf
#autoheader
#make clean
再次配置
#./configure --prefix=/usr/local/webserver/mmseg
再次#make
#make install阅读全文...
#groupadd vsftpd
#useradd vsftpftp -g vsftpd -d /data/www -s /sbin/nologin
#passwd vsftpftp
输入两次密码
#cd /usr/local/src
#wget http://fossies.org/linux/misc/vsftpd-3.0.2.tar.gz
#tar zxvf vsftpd-3.0.2.tar.gz
#mv vsftpd-3.0.2 /usr/local/webserver/vsftpd
#cd /usr/local/webserver/vsftpd
#mkdir /usr/local/man/man8
#mkdir /usr/local/man/man5
#make
因为在重新设置MySQL的root密码的期间,MySQL数据库完全出于没有密码保护的
状态下,其他的用户也可以任意地登录和修改MySQL的信息。可以采用将MySQL对
外的端口封闭,并且停止Apache以及所有的用户进程的方法实现服务器的准安全
状态。最安全的状态是到服务器的Console上面操作,并且拔掉网线。
2.修改MySQL的登录设置:
# vi /etc/my.cnf
在[mysqld]的段中加上一句:skip-grant-tables
例如:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
skip-grant-tables
保存并且退出阅读全文...
@安装memcache
#wget http://pecl.php.net/get/memcache-2.2.6.tgz
#tar zxvf memcache-2.2.6.tgz
# cd memcache-2.2.6
#/usr/local/webserver/php/bin/phpize
#./configure --with-php-config=/usr/local/webserver/php/bin/php-config
#make
#make install
显示如下信息时为安装成功:
Installing shared extensions: /usr/local/webserver/php/lib/php/extensions/no-debug-non-zts-20090626/
#vi /usr/local/webserver/php/lib/php.ini
查找extension_dir = "./",去掉分号,并改为
extension_dir = "/usr/local/webserver/php/lib/php/extensions/no-debug-non-zts-20090626/"
在extension_dir下面加上 extension = "memcache.so"
保存
#killall php-fpm
#/usr/local/webserver/php/sbin/php-fpm 启动
查看phpinfo中是否有memcache一项,有则成功阅读全文...