1. 程式人生 > >centos6.5 安裝應用

centos6.5 安裝應用

1、新建使用者和組

增加使用者:useradd yven
密碼修改:passwd yven

修改sudo許可權:vim /etc/sudoers
      增加:yven    ALL=(ALL)       ALL

2、安裝jdk

解壓:tar -zxvf jdk8
移動:rm jkd8 /usr/local/jdk/jdk8
環境變數:vim /etc/profile
export JAVA_HOME=/usr/local/jdk/jdk8
export JRE_HOME=${JAVA_HOME}/jre  
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib  
export PATH=${JAVA_HOME}/bin:$PATH source /etc/profile 檢視:java -version

3、安裝MySQL

https://www.cnblogs.com/renjidong/p/7047396.html

出現'MySQL Daemon failed to start‘解決方法

修改密碼:mysql -u root mysql> use mysql; mysql> UPDATE user SET Password = PASSWORD('newpass') WHERE user = 'root'; mysql> FLUSH PRIVILEGES
;

開啟遠端連線:
mysql> use mysql

mysql> grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;

mysql> flush privileges;

mysql> select host,user from user;


4、安裝Redis

https://www.cnblogs.com/renzhicai/p/7773080.html

https://zhidao.baidu.com/question/459057257065109605.html

http://www.mamicode.com/info-detail-1843956.html

5、安裝zookeeper

https://www.cnblogs.com/zuolun2017/p/8186254.html

6、安裝HBASE

http://hbase.apache.org/book.html#quickstart

https://blog.csdn.net/haihongazar/article/details/52623480

7、安裝nginx

https://blog.csdn.net/xzp_12345/article/details/78902164