概述
【常用命令】
1.服务启动、停止、重启、状态:service xxx start|stop|restart|status
2.查看自动启动状态:chkconfig --list xxx
3.开机自动启动(停止)服务:chkconfig xxx on|off
4.查看软件包是否安装:rpm -qa | grep xxx
5.安装软件包:rpm -ivh xxx.rpm
6.yum安装软件包:yum install xxx
【安装ftp服务端】
yum install vsftpd
service vsftpd start
useradd -g ftp -s /sbin/nologin ftpuser
passwd ftpuser
【安装ftp客户端】
yum install ftp
------------------------------------------
[root@iZ28cx1jifcZ /]# rpm -qa | grep ftp
vsftpd-2.2.2-13.el6_6.1.x86_64
ftp-0.17-54.el6.x86_64
------------------------------------------
【安装tomcat-7.0.57】
wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-7/v7.0.57/bin/apache-tomcat-7.0.57.zip
unzip apache-tomcat-7.0.57.zip
【安装mysql-5.6.22】
wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
yum localinstall mysql-community-release-el6-5.noarch
yum install mysql-community-server
------------------------------------------
[root@iZ28cx1jifcZ soft]# rpm -qa | grep mysql
mysql-community-release-el6-5.noarch
mysql-community-common-5.6.22-2.el6.x86_64
mysql-community-client-5.6.22-2.el6.x86_64
mysql-community-server-5.6.22-2.el6.x86_64
mysql-community-libs-5.6.22-2.el6.x86_64
mysql-community-libs-compat-5.6.22-2.el6.x86_64
-------------------------------------------
mysqladmin -u root -p password ****
service mysqld start
mysql>grant all privileges on *.* to "root" identified by "****";
--设置字符集--
vi /etc/my.cnf
[mysqld]
character_set_server=utf8
最后
以上就是兴奋白猫为你收集整理的[linux]centos6.5下mysql、tomcat环境搭建的全部内容,希望文章能够帮你解决[linux]centos6.5下mysql、tomcat环境搭建所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复