본문 바로가기
조회 수 2690 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print Files
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print Files
Install JDK7, Tomcat7 and MySQL on OS X
 
########
# Java
########
 
1. download JDK7 from www.oracle.com
2. install java
3. verify the java version
java -version
java and tomcat-0.png 
 
##########
# Tomcat
##########
 
1. Download tomcat binary from http://tomcat.apache.org and unzip
java and tomcat-1.png
 
2. move the unarchived distribution to /usr/local
mv apache-tomcat-7.0.63 /usr/local/
 
3. create a symbolic link for the tomcat dir (easy to replace when tomcat updated)
sudo rm -f /Library/Tomcat
sudo ln -s /usr/local/apache-tomcat-7.0.63 /Library/Tomcat
 
4. Change ownership of the tomcat folder hierarchy:
sudo chown -R <your_account>:admin /usr/local/apache-tomcat-7.0.63
 
5. start Tomcat
/Library/Tomcat/bin/startup.sh
java and tomcat-2.png
 
Note: To stop Tomcat
/Library/Tomcat/bin/shutdown.sh
 
6. check tcp open ports
netstat -natp tcp | grep -i listen | sort
lsof -i -P | grep -i listen
java and tomcat-3.png
 
7. open your web browser
http://localhost:8080
java and tomcat-4.png
 
#########
# MySQL
#########
 
1. Download and install .dmg from mysql site
http://dev.mysql.com/downloads/mysql/
 
2. start mysql
sudo /usr/local/mysql/support-files/mysql.server start
/usr/local/mysql/bin/mysql -v
 
3. add mysql path to bash_profile
vi ~/.bash_profile
-------------------
export PATH="/usr/local/mysql/bin:$PATH"
-------------------
source ~/.bash_profile
 
4. set root password for mysql
sudo mysql_secure_installation
mysql -uroot -p
 
5. create user and DB
mysql -uroot -p
CREATE DATABASE my_db DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
GRANT ALL PRIVILEGES ON my_db.* TO 'db_user'@'localhost' IDENTIFIED BY 'my_password';




Title
List of Articles
번호 제목 글쓴이 날짜 조회 수
57 Tomcat start/stop scripts Hojung 2015.07.31 3300
56 Generate PDF with text file on OS X file Hojung 2015.07.30 2851
» Install JDK7, Tomcat7 and MySQL on OS X file Hojung 2015.07.28 2690
54 Keyboard Symbol List Hojung 2015.07.02 2563
53 How to create a bootable USB stick from iso on OS X file Hojung 2014.12.14 2890
52 Mount volume read-only with Disk-Arbitrator file Hojung 2014.11.05 3199
51 How to check and fix drive in OS X from CLI (diskutil, fsck_hfs) file Hojung 2014.11.05 3678
50 FileVault 2 not working correctly in OS X VMs with VM disks set to Bus Type: SATA file Hojung 2014.11.05 3082
49 Create an encrypted archive file Hojung 2014.11.04 2861
48 Encrypt external hdd file Hojung 2014.11.04 2945
47 Finder 특정 디렉토리에서 디렉토리도 사이즈 보기 ('du -sh *' 와 동일) file Hojung 2014.11.04 3137
46 Don't delete files when copying file Hojung 2014.11.04 2910
45 안전하게 파일 삭제하기 (파일 완전삭제) file Hojung 2014.11.04 4659
44 editor에서 ^M가 나오는 문제 (unix - mac 호환성 문제시) Hojung 2014.11.04 2848
43 How to get file info (file, GetFileInfo, mdls, mdfind) Hojung 2014.11.04 2851
42 Create bootable USB stick from ISO in Mac OS X file Hojung 2014.09.07 4116
41 Create an OS X 10.9 Mavericks ISO file Hojung 2014.09.01 4040
40 Install command line RAR and UnRAR for Mac OS Hojung 2014.05.26 3827
39 How to encrypt a file from the OS X command line Hojung 2014.03.03 4596
38 Going from MacPorts to Homebrew (how to remove macports) Hojung 2014.02.19 5697
Board Pagination ‹ Prev 1 2 3 Next ›
/ 3

Designed by sketchbooks.co.kr / sketchbook5 board skin

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5