1.硬件环境: 硬盘:9.2 G ; 内存:128 M ; 网卡:EEpor100 2.软件 操作系统: RedHat 6.2 3.优化RedHat 6.2 安装时选择 ftp 和 dns 编辑文件 /etc/hosts 改为: 202.104.131.100 info.langoit.com.cn info 编辑文件 /etc/named.conf 改为: // generated by
1.硬件环境:硬盘:9.2 G ; 内存:128 M ; 网卡:EEpor100
2.软件
操作系统: RedHat 6.2
3.优化RedHat 6.2
安装时选择
ftp 和 dns
编辑文件 /etc/hosts
改为:
202.104.131.100 info.langoit.com.cn info
编辑文件 /etc/named.conf
改为:
// generated by named-bootconf.pl
options {
directory "/var/named";
forwarders {202.104.131.98;};
forwards only;
// query-source address * port 53;
};
//
// a caching only nameserver config
//
zone "." in {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "named.local";
};
编辑文件 /etc/resolv.conf
改为:
search langoit.com.cn
nameserver 202.104.131.98
nameserver 202.96.134.133
优化linux 内核:
删除没有的rpm 包:
首先要停止正在运行的进程
cd /etc/rc.d/init.d
./sendmail stop
./apmd stop
./kudzu stop
rpm -e --nodeps sendmail kudzu nfs-utils
编辑文件 /usr/src/linux/include/linux/tasks.h
编辑第十四行 (vi +14 ) :
NR_TASKS 5120 ---> 3072
MIN_TASKS_LEFT_FOR_ROOT 16 ---> 24
编辑文件 /usr/src/linux/Makefile
编辑第十八行 (vi +18 ) :
HOSTCC =gcc
--->
HOSTCC =egcs
编辑第二十五行 (vi +25 ) :
CC =$(CROSS_COMPILE)gcc -D__KERNEL__ -I$(HPATH)
--->
CC =$(CROSS_COMPILE)egcs -D__KERNEL__ -I$(HPATH)
编辑第九十行 (vi +90 ) :
CFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
--->
CFLAGS = -Wall -Wstrict-prototypes -O9 -funroll-loops -ffast-math -malign-double -mcpu=
pentiumpro -march=pentiumpro -fomit-frame-pointer -fno-exceptions
编辑第十九行 (vi +19 ) :
HOSTCFLAGS =-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
--->
HOSTCFLAGS =-Wall -Wstrict-prototypes -O9 -funroll-loops -ffast-math -malign-double -mcpu=
pentiumpro -march=pentiumpro -fomit-frame-pointer -fno-exceptions
设置内核:
make xconfig
具体可自己根据系统来设置
在 /usr/src/linux/ 目录下
make dep
make clean
make bzlilo
make modules
make modules_install
4.安装和优化mm,mysql,apache,php,phpMyAdmin,perl,mode_perl
1) 文件
mm: mm-1.1.3.tar.gz
mysql: mysql-3.22.32.tar.gz
apache: apache_1.3.12.tar.gz
php: php-4.0.0.2.0.5.tar.gz
phpMyAdmin: phpMyAdmin_2.0.5.tar.gz
mode_perl: mod_perl-1.24.tar.gz
perl-DBI: DBI-1.14.tar.gz
DBD-Oracle-1.06.tar.gz
Msql-Mysql-modules-1.2214.tar.gz
Data-Dumper-2.101.tar.gz
Data-ShowTable-3.3.tar.gz
eperl: eperl-2.2.14.tar.gz
perl: perl-5.6.0.tar.gz
解压文件:
tar -zxpf 文件名
注意:以下所有的预编译和安装必须在要安装的软件目录下
#) 安装mm
./configure \
--disable-shared \
--prefix=/usr
make
make test
make install
make clean
#) mysql的安装和配置
#) mysql的预编译
CC="egcs" \
OPTIM="-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro \
-march=pentiumpro -fomit-frame-pointer -fno-exceptions" \
./configure \
--prefix=/mysql \
#) 安装mysql
make
make install
make clean
#) 配置mysql
/mysql/bin/mysql_install_db
初始化数据库
cp /mysql/share/mysql/mysql.server /etc/rc.d/init.d/mysql
cd /etc/rc.d/rc3.d
ln -s ../init.d/mysql S70mysql
系统启动时加载mysql
#) apache 的预编译
CC="egcs" \
OPTIM="-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro \
-march=pentiumpro -fomit-frame-pointer -fno-exceptions" \
CFLAGS="-DDYNAMIC_MODULE_LIMIT=0" \
./configure \
--prefix=/apache \
#) php的预编译
CC="egcs" \
OPTIM="-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro \
-march=pentiumpro -fomit-frame-pointer -fno-exceptions" \
./configure \
--prefix=/usr \
--with-apache=../apache_1.3.12 \
--enable-safe-mode \
--with-mm \
--enable-inline-optimization \
--enable-memory-limit \
--enable-track-vars \
--with-mysql=/mysql \
#) 安装php
make
make install
make clean
#) mode_perl 的预编译
perl Makefile.PL \
EVERYTHING=1 \
APACHE_SRC=../apache_1.3.12/src \
USE_APACI=1 \
DO_HTTPD=1
#) 安装mod_perl
make
make install
make clean
#) 编译apache
EAPI_MM=SYSTEM \
CC="egcs" \
OPTIM="-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro \
-march=pentiumpro -fomit-frame-pointer -fno-exceptions" \
CFLAGS="-DDYNAMIC_MODULE_LIMIT=0" \
./configure \
--prefix=/apache \
--activate-module=src/modules/php4/libphp4.a \
--enable-module=php4 \
--activate-module=src/modules/perl/libperl.a \
--enable-module=perl
#) 安装apache
make
make install
make clean
cp /apache/bin/apachectl /etc/rc.d/init.d/httpd
cd /etc/rc.d/rc3.d
ln -s ../init.d/httpd S80httpd
系统启动时加载apache
#) 安装eperl
perl Makefile.PL
make
make test
make install
make clean
-frame-pointer -fno-exceptions" \
CFLAGS="-DDYNAMIC_MODULE_LIMIT=0" \
./configure \
--prefix=/apache \
--activate-module=src/modules/php4/libphp4.a \
--enable-module=php4 \
--activate-module=src/modules/perl/libperl.a \
--enable-module=perl
#) 安装apache
make
make install
make clean
cp /apache/bin/apachectl /etc/rc.d/init.d/httpd
cd /etc/rc.d/rc3.d
ln -s ../init.d/httpd S80httpd
系统启动时加载apache
#) 安装eperl
perl Makefile.PL
make
make test
make install
make clean
make
make test
make install
make clean
make clean

MySQL is suitable for beginners to learn database skills. 1. Install MySQL server and client tools. 2. Understand basic SQL queries, such as SELECT. 3. Master data operations: create tables, insert, update, and delete data. 4. Learn advanced skills: subquery and window functions. 5. Debugging and optimization: Check syntax, use indexes, avoid SELECT*, and use LIMIT.

MySQL efficiently manages structured data through table structure and SQL query, and implements inter-table relationships through foreign keys. 1. Define the data format and type when creating a table. 2. Use foreign keys to establish relationships between tables. 3. Improve performance through indexing and query optimization. 4. Regularly backup and monitor databases to ensure data security and performance optimization.

MySQL is an open source relational database management system that is widely used in Web development. Its key features include: 1. Supports multiple storage engines, such as InnoDB and MyISAM, suitable for different scenarios; 2. Provides master-slave replication functions to facilitate load balancing and data backup; 3. Improve query efficiency through query optimization and index use.

SQL is used to interact with MySQL database to realize data addition, deletion, modification, inspection and database design. 1) SQL performs data operations through SELECT, INSERT, UPDATE, DELETE statements; 2) Use CREATE, ALTER, DROP statements for database design and management; 3) Complex queries and data analysis are implemented through SQL to improve business decision-making efficiency.

The basic operations of MySQL include creating databases, tables, and using SQL to perform CRUD operations on data. 1. Create a database: CREATEDATABASEmy_first_db; 2. Create a table: CREATETABLEbooks(idINTAUTO_INCREMENTPRIMARYKEY, titleVARCHAR(100)NOTNULL, authorVARCHAR(100)NOTNULL, published_yearINT); 3. Insert data: INSERTINTObooks(title, author, published_year)VA

The main role of MySQL in web applications is to store and manage data. 1.MySQL efficiently processes user information, product catalogs, transaction records and other data. 2. Through SQL query, developers can extract information from the database to generate dynamic content. 3.MySQL works based on the client-server model to ensure acceptable query speed.

The steps to build a MySQL database include: 1. Create a database and table, 2. Insert data, and 3. Conduct queries. First, use the CREATEDATABASE and CREATETABLE statements to create the database and table, then use the INSERTINTO statement to insert the data, and finally use the SELECT statement to query the data.

MySQL is suitable for beginners because it is easy to use and powerful. 1.MySQL is a relational database, and uses SQL for CRUD operations. 2. It is simple to install and requires the root user password to be configured. 3. Use INSERT, UPDATE, DELETE, and SELECT to perform data operations. 4. ORDERBY, WHERE and JOIN can be used for complex queries. 5. Debugging requires checking the syntax and use EXPLAIN to analyze the query. 6. Optimization suggestions include using indexes, choosing the right data type and good programming habits.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

WebStorm Mac version
Useful JavaScript development tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Atom editor mac version download
The most popular open source editor