JDK、mysql、tomcat环境部署
时间:2021-07-01 10:21:17
帮助过:56人阅读
rpm -ivh MySQL-client-5.6.22-1.el6.i686.rpm
安装服务器端:rpm -ivh MySQL-server-5.6.22-1.el6.i686.rpm
6.启动mysql
service mysql start
7.将mysql 加到系统服务中并设置开机启动
加入到系统服务:chkconfig --add mysql
自动启动:chkconfig mysql on
8.登录mysql(5.5的版本为空)
mysql安装好后会生成一个临时随机密码,存储位置在/root/.mysql_secret

9.cat 查看默认的mysql初始密码,获取到后复制,重新进入mysql
10.开启mysql的远程登录
grant all privileges on *.* to ‘root‘ @‘%‘ identified by ‘root‘;
flush privileges;


11.开放Linux的对外访问的端口为 3306
/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
/etc/rc.d/init.d/iptables save ---将修改永久保存到防火墙中

12.输入命令进入mysql


JDK、mysql、tomcat环境部署
标签:info 开启 local 一个 自动 profile 修改 cep bat