linux安装tomcat
下载Linux版本tomcat将它放在usr/local中,并且解压缩
tar -zxvf apache-tomcat-7.0.73.tar.gz
然后改名为tomcat
然后我们就同在windows环境下一般使用tomcat,启动
sh ./usr/local/tomcat/bin/startup.sh
停止tomcat
sh ./usr/local/tomcat/bin/shutdown.sh
【注意关闭防火墙或者在配置文件中允许此端口】
linux 安装mysql
按部就班的依次走步骤:
1 安装libaio
mysql依赖libaio所以我们首先先安装libaio
yum search libaio
yum install libaio
安装此服务。
2 检查mysql是否安装
yum list installed | grep mysql
如果有就先卸载mysql
yum -有remove mysql-libs.x86_64
下载mysql yum respository
wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
如果没有wget命令则先安装wget 、
yum install wget
yum localinstall mysql-community-release-el7-5.noarch.rpm
yum repolist enabled | grep "mysql.*-community.*"
yum repolist all | grep mysql
查看当前mysql启动版本
yum repolist enabled | grep mysql
修改mysql版本
yum-config-manager --disable mysql56-community
yum-config-manager --enable mysql57-community-dmr
/etc/yum.repos.d/mysql-community.repo
# Enable to use MySQL 5.6
[mysql56-community]
name=MySQL 5.6 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/7/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
安装mysql
yum install mysql-community-server
rpm -qi mysql-community-server.x86_64 0:5.6.24-3.el7
whereis mysql
systemctl start mysqld 启动mysql
systemctl stop mysqld
systemctl status mysqld
安装成功!
创造一个供外部连接用的账号sa并且给他提供所有的权限。