Linux下安装MySql,Nginx

Suse

1,安装Mysql
ftp://64.50.236.52/.1/vectorlinux/veclinux-5.9/source/extra/dev/mysql/mysql-5.0.45.tar.gz
mkdir -p /usr/local/mysql
./configure --prefix=/usr/local/mysql \
--with-charset=utf8 \
--with-extra-charsets=all \
--enable-assembler \
--enable-thread-safe-client \
--with-client-ldflags=-all-static \
--with-mysqld-ldflags=-all-static \
--without-debug

make && make install
cd mysql-5.0.45/

cp support-files/my-medium.cnf /etc/my.cnf
cp support-files/mysql.server /etc/init.d/mysqld
chmod 755 /etc/init.d/mysqld
chkconfig mysqld on
chown -R mysql.mysql /usr/local/mysql5*
/usr/local/mysql5/bin/mysql_install_db --user=mysql
chown -R root /usr/local/mysql5*
chown -R mysql /usr/local/mysql5/var

2,Nginx安装

下载:

pcre-8.3.2.zip

nginx-1.314.tar.gz

Linux下安装MySql,Nginx_第1张图片

解压:

#unzip pcre-8.3.2.zip

#tar zxvf nginx-1.3.14.tar.gz

# cd pcre-8.3.2

# ./configure  

# make && make install

# cd ../nginx-1.3.14

#./configure --prefix=/usr/local/nginx --with-http_stub_status_module

# make && make install

 到此安装完成,检查是否成功:

 #cd  /usr/local/nginx/sbin

 #  ./nginx -t 

输出如下:

 nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok

 nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful

启动nginx:

# cd /usr/local/nginx/sbin

# ./nginx

结果:

Linux下安装MySql,Nginx_第2张图片

 

你可能感兴趣的:(Linux下安装MySql,Nginx)