728x90 전체 글203 [MariaDB]설치 터미널에서 Homebrew 업테이트 후 설치한다.$brew update$brew install mariadb 기본 설치 경로 : /usr/local/Cellar 설치과 완료되면 다음과 같은 경로를 통해 실행할 수 있다.$/usr/local/Cellar/mariadb/{MariaDB버전}/mysql.server start 서버 재부팅시 MariaDB가 자동실행 될 수 있도록 스타트업 plist를 LaunchAgents 디렉토리에 링크시키는 것이 편리하다. $ln -sfv /usr/local/opt/mariadb/*.plist ~/Library/LaunchAgents 2016. 9. 4. 맥북 Root 비밀번호 설정 먼저 터미널을 실행시킨다. 1. bash 프롬프트 이동$ sudo -s 를 입력-> 현재 사용자의 패스워드를 입력한다. 2. root 패스워드 설정sh-3.2# passwd root-> Changing password for root. -> 변경할 비밀번호 입력 3. root 재접속sh-3.2# exit -> $ su-> 설정한 패스워드 입력 4. 사용자 확인sh-3.2# whoami 2016. 9. 3. [PHP]Warning:imagepng(): gd-png error: compression level must be 0 through 9 imagepng(): gd-png error: compression level must be 0 through 9이미지 업로드 중 이러한 경고가 뜨면서 업로드는 되지만 이미지를 출력하지 못하는 경우가 발생했다. 이미지 업로드 처리해주는 부분에 빨간색 부분을 추가해줬다. if ( $img_ext == 'png' ) {$q=9/100;$picture_quality*=$q;Imagepng($thumb,"$img_name_new",$picture_quality);} 이미지 품질 관련 문제라고 생각된다. 2016. 8. 12. 영문 다음에디터(Daum Editor) 영문 홈페이지에 다음에디터를 붙였다가 어쩔수 없이 하나하나 고쳐주게 됬습니다. 없는 포토샵 실력으로 디자이너님께 물어물어 작업한 자료 입니다. 사용하실 분들 사용하세요~ 2016. 7. 1. Linux 서버간 sshfs를 사용한 공유폴더 설정 1. 설치 방법- Ubuntu, Debian# apt-get install sshfs - CentOS, Redhat// 리눅스 확장 저장소 추가.# yum install epel-release -y// 설치# yum install fuse sshfs - Amazon Linux AMI# yum install fuse// sshfs가 자장소에 없어 컴파일 환경을 만들고 소스를 다운받아 컴파일해야 한다.# yum install glib2-devel# wget http://downloads.sourceforge.net/project/fuse/sshfs-fuse/2.5/sshfs-fuse-2.5.tar.gz# tar -xzvf sshfs-fuse-2.5.tar.gz# cd sshfs-fuse-2.5/# ./con.. 2016. 6. 29. [JQuery]선택한 아이콘 이미지 URL경로로 처리 사이드메뉴의 경우 6개 정도 메뉴가 아이콘으로 들어가 아이콘마다 이미지가 다르고 hover 이미지가 따로 있을 때, 선택한 아이콘 경로로 이동했을 하면 hover 효과가 필요할 때가 있다. $(document).ready(function(){var pathname = $(location).attr('pathname');// 현재 URL 경로이름을 가져온다. switch(pathname){case '/my/page01.asp':$('.my-icon01').css({"background":"url(/images/sub/page01.png) no-repeat center 19px" }); $('.my-icon01 a').css({"color":"#ed1651"}); break;case '/my/page02.a.. 2016. 5. 25. 이전 1 ··· 27 28 29 30 31 32 33 34 다음 728x90