?
0. 关闭防火墙 chkconfig iptables off
?
1. 空白的 centos6 修改 host vi /etc/sysconfig/network HOSTNAME=mechine001 vi /etc/hosts 127.0.0.1 mechine001 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 mechine001 localhost localhost.localdomain localhost6 localhost6.localdomain6
?
2. 切换到root 用户 ,su root chmod 777 /etc/sudoers root ALL=(ALL) ALL baoyou ALL=(ALL) ALL %wheel ALL=(ALL) ALL %wheel ALL=(ALL) nopasswd:ALL chmod 644 /etc/sudoers 可以获取root 用户了
?
3. 在 /home/baoyou 下创建 package 、soft 文件夹
?
4.安装java 下载 jdk jre-7u5-linux-i586.tar.gz 解压 tar -zxvf jre-7u5-linux-i586.tar.gz 移动到 mv jre1.7.0_05 ../soft/jre1.7.0_05 修改配置文件 sudo -s vi /etc/profile export JAVA_HOME=/home/baoyou/soft/jre1.7.0_05/ export PATH=.:$JAVA_HOME/bin:$PATH source /etc/profile java -version
?
?
5.安装 maven 下载 apache-maven-3.2.3-bin.tar.gz 解压 tar -zxvf apache-maven-3.2.3-bin.tar.gz 移动 mv apache-maven-3.2.3 ../soft/maven 修改配置文件 sudo -s vi /etc/profile export MAVEN_HOME=/home/baoyou/soft/maven/ export PATH=$JAVA_HOME/bin:$MAVEN_HOME/bin:$PATH source /etc/profile mvn -v
?
?
6.安装 nenux 下载 nexus-2.11.4-01-bundle.tar.gz 解压 tar -zxvf nexus-2.11.4-01-bundle.tar.gz 移动 mv nexus-2.11.4-01 ../soft/nexus 修改配置文件 进入 cd soft/nexus sudo chown -R baoyou:baoyou * cd bin ./nexus start 成功启动
?
7.安装 mysql 卸载 mysql rpm -qa | grep -i mysql rpm -e --nodeps xxx rpm -ev xxxx rpm --import /etc/pki/rpm-gpg/RPM* yum remove xxx rm -rf /usr/lib/mysql rm -rf /usr/include/mysql rm -rf /etc/my.cnf rm -rf /etc/init.d/mysql rm -rf /var/lib/mysql rm -rf /etc/init.d/mysql rpm -ivh xxx rpm -ivh MySQL-server-5.6.15-1.el6.x86_64.rpm cp /usr/share/mysql/my-default.cnf /etc/my.cnf /usr/bin/mysql_install_db service mysql start cat /root/.mysql_secret #查看root账号密码 mysql -uroot –pxxxxx SET PASSWORD = PASSWORD(‘root‘); 远程登录 use mysql; select host,user,password from user; update user set password=password(‘root‘) where user=‘root‘; update user set host=‘%‘ where user=‘root‘ and host=‘localhost‘; 或者 GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘root‘ WITH GRANT OPTION; flush privileges; 开机自启动 chkconfig mysql on chkconfig --list | grep mysql /var/lib/mysql/ #数据库目录 /usr/share/mysql #配置文件目录 /usr/bin #相关命令目录 /etc/init.d/mysql #启动脚本
?
?
?
?
?
?
?
?
?
?
?
?
?
?
原文:http://knight-black-bob.iteye.com/blog/2259836