linux下jdk1.7和tomcat7和mysql5.5安装步骤

QQ群288567073,无商业广告,每日干货电子书+视频分享

荔枝FM手机客户端搜索“挨踢脱口秀”即可订阅我们

视频汇总首页:http://edu.51cto.com/lecturer/index/user_id-4626073.html


Linux基础环境搭建请看http://edu.51cto.com/course/course_id-1122.html


jdk的安装:

yum install java*

验证:java -version


tomcat7的安装:

下载tomcat7压缩包,解压即可


mysql5.5的安装:

yum -y install ntp vim-enhanced gcc gcc-c++ flex bison autoconf automake bzip2-devel ncurses-devel zlib-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel libXpm-devel gettext-devel  pam-devel libtool libtool-ltdl openssl openssl-devel fontconfig-devel libxml2-devel curl-devel  libicu libicu-devel libmcrypt libmcrypt-devel libmhash libmhash-devel


tar zxvf cmake-2.8.9.tar.gz

cd cmake-2.8.9

./configure

make && make install


mkdir -pv /usr/local/mysql/data


groupadd mysql

useradd -g mysql -s /usr/sbin/nologin mysql


tar zxvf mysql-5.5.27.tar.gz

cd mysql-5.5.27

cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/usr/local/mysql/data -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_unicode_ci -DWITH_READLINE=1 -DWITH_SSL=system -DWITH_EMBEDDED_SERVER=1 -DENABLED_LOCAL_INFILE=1 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_DEBUG=0

make && make install

cp support-files/my-medium.cnf /etc/my.cnf

chmod +x /usr/local/mysql

chown -R mysql:mysql /usr/local/mysql

chown -R mysql:mysql /usr/local/mysql/data

cp support-files/mysql.server /etc/init.d/mysqld

chmod +x /etc/init.d/mysqld

chkconfig --add mysqld

chkconfig mysqld on

/usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data

vi /etc/profile在最后添加

PATH=$PATH:/usr/local/mysql/bin

source /etc/profile

service mysqld start

/usr/local/mysql/bin/mysqladmin -u root password '123123'


linux下jdk1.7和tomcat7和mysql5.5安装步骤_第1张图片

本文出自 “小强性能测试&产品经理窝” 博客,请务必保留此出处http://xqtesting.blog.51cto.com/4626073/1015069

你可能感兴趣的:(mysql5.5)