'맥북'에 해당되는 글 15건

  1. 2015.04.15 맥북에서 ftp 서버 열기
  2. 2015.03.09 mac에서 java_home 설정
  3. 2014.12.05 맥북에서 hosts 파일 변경
  4. 2014.11.10 맥북 mariadb 설치하기
  5. 2014.11.10 맥북 homebrew 설치하기


ftp 서버 실행

sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist


ftp 서버 중지

sudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.plist


ftp 데몬 설정 파일

sudo vi /etc/ftpd.conf


Posted by 무세1
,

맥에서 JAVA_HOME 확인

vim ~/.bash_profile


#java 1.6

export JAVA_HOME=$(/usr/libexec/java_home -v 1.6)

#java 1.7

export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)

#java 1.8

export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)


설치된 자바 버전 확인

$ /usr/libexec/java_home -V

Matching Java Virtual Machines (3):

    1.7.0_71, x86_64: "Java SE 7" /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home

    1.6.0_65-b14-466.1, x86_64: "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

    1.6.0_65-b14-466.1, i386: "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home


/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home

$ 


bash_profile 수정후 적용

$ source ~/.bash_profile


Posted by 무세1
,

sudo nano /private/etc/hosts


##

# Host Database

#

# localhost is used to configure the loopback interface

# when the system is booting.  Do not change this entry.

##

127.0.0.1       localhost

255.255.255.255 broadcasthost

::1             localhost

10.2.2.10      test.domain.com


Ctrl+o

Enter

Ctrl+x



바로 적용을 위해서

dscacheutil -flushcache


Posted by 무세1
,

맥북 mariadb 설치하기

맥북 2014. 11. 10. 22:43

Homebrew 설치 되어 있다는 가정하에 진행함.

terminal 실행후 아래 두 명령어를 실행하면 끝.


>brew update


>brew install mariadb


mariadb 설치후 db실행

>mysql.server start


mariadb 설치후 db stop

>mysql.server stop


mariadb 접속

mysql -uroot


맥북 실행시 mariadb 실행하려면

> ln -sfv /usr/local/opt/mariadb/*.plist ~/Library/LaunchAgents

> launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mariadb.plist



Posted by 무세1
,

맥북 homebrew 설치하기

맥북 2014. 11. 10. 22:26

맥북에 homebrew 설치할때, 일단 terminal 실행한다.


ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"


위 명령어를 실행하면 설치를 진행한다.

설치진행시 패스워드를 입력하라는 창이 나오면 패스워드를 입력한다.


설치 진행은 아래와 같이 진행된다.



Posted by 무세1
,