페도라 리눅스 설치하기  =>  [리눅스] Fedora 17 설치 및 한글 설정

콘솔모드 부팅과 openSSH 설치하기  =>  [페도라 서버 구축 1] 텍스트모드 부팅과 openSSH 설치

Xshell로 원격접속하기  =>  [페도라 서버 구축 2] Xshell 을 이용한 원격 접속

Apache HTTP server 설치하기  =>  [페도라 서버 구축 3] Apache 설치하기

PHP 설치하기  =>  [페도라 서버 구축 4] PHP 설치하기

 

 

 

 

웹서버의 기본인 APM의 마지막인 MySQL 설치가 이어진다.

 

MySQL은 자유 소프트웨어 라이선스가 적용되는 데이터베이스 관리 시스템이다.

 

MySQL 설치도 원격접속을 통하여 다음과 같이 진행한다.

 

 

 

[root@localhost ~]# yum -y install mysql-devel

[root@localhost ~]# yum -y install mysql-server
[root@localhost ~]# service mysqld start

[root@localhost ~]# mysql_secure_installation                                              //MySQL 관리자 설정

 


NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!


In order to log into MySQL to secure it, we'll need the current
password for the root user.  If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):   (엔터)
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.

Set root password? [Y/n]   (엔터)
New password:   (비밀번호 입력)
Re-enter new password:   (비밀번호 입력)
Password updated successfully!
Reloading privilege tables..
 ... Success!


By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n]   (엔터)
 ... Success!

Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n]   (엔터) 
 ... Success!

By default, MySQL comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n]   (엔터) 
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n]   (엔터) 
 ... Success!

Cleaning up...

 

All done!  If you've completed all of the above steps, your MySQL
installation should now be secure.

Thanks for using MySQL!

 

[root@localhost ~]# mysql -u -p                                                              // 안되면 mysql -u root -p
Enter password:  (비밀번호 입력)                  
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 12
Server version: 5.5.28 MySQL Community Server (GPL)

Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> quit

Bye

[root@localhost ~]# service mysqld restart                                                 // MySQL 재시작
[root@localhost ~]# chkconfig mysqld on                                                   // 시작프로그램에 MySQL 등록


 

MySQL의 root 비밀번호가 제대로 설정되었는지만 확인하면 된다.

 

 

 

 

 

 

phpMyAdmin 설치하기  =>  [페도라 서버 구축 6] phpMyAdmin 설치하기

JAVA 설치하기 =>  [페도라 서버 구축 7] JAVA 설치하기

Tomcat 설치하기  =>  [페도라 서버 구축 8] Tomcat 설치하기

FTP 서버 구축하기  =>  [페도라 서버 구축 9] proFTP 설치하기

 

 

  1. 우왕 굳! 2013.07.15 13:20

    정리가 매우 잘되어 있네요
    설치 하는데 매우 도움이 되었습니다.
    제가 아직 초보라 wq 입력할떄 : 먼저 입력 해야 된다는 부분에서 햇 갈렸습니다. ㅎㅅㅎ

+ Recent posts