Java
# wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u51-b16/jdk-8u51-linux-x64.tar.gz"
# tar xf jdk-8u51-linux-x64.tar.gz -C /usr/local/
# chown -R root. /usr/local/jdk1.8.0_51/
// 맨 아래 추가
# vi ~/.bash_profile
export JAVA_HOME=/usr/local/jdk1.8.0_51
export PATH=$PATH:$JAVA_HOME/bin
# source ~/.bash_profile
Mysql
# yum install -y mysql-server MySQL-python
// 파일 수정 및 추가
# vi /etc/my.cnf
controller # vi /etc/my.cnf
bind-address=192.168.56.0
default-storage-engine=innodb
innodb_file_per_table
collation-server=utf8_general_ci
init-connect='SET NAMES utf8'
character-set-server=utf8
# service mysqld start
# chkconfig mysqld on
# mysql_install_db
# mysql_secure_installation
// 유저 생성
# mysql -u root -p
mysql> grant all privileges on DBNAME.* to 'USERNAME'@'localhost' identified by 'PASSWORD' with grant option;
mysql> flush privileges;
// 비밀번호 찾기
# service mysqld stop
# mysqld_safe --skip-grant-tables &
# mysql
mysql> use mysql;
mysql> select host, user, password from user;
mysql> update user set password=password('NEW_PASSWOD') where user='USERNAME';
mysql> Bye
# /etc/rc.d/init.d/mysqld restart
'Linux > CentOS' 카테고리의 다른 글
Linux에서 Windows 공유폴더 사용(samba) (1) | 2015.10.05 |
---|---|
yum으로 rpm만 다운로드 하기 (0) | 2015.06.10 |
CentOS에 ntfs usb 마운트 (0) | 2015.06.05 |
Linux GPT 파티션 (0) | 2015.06.04 |
Docker in CentOS 7 minimal (0) | 2015.04.09 |