/etc/profile 과 ~/.bash_profile은 모두 사용자가 로그인했을때 적용되는 스크립트를 정의해놓은 파일이다. 도스에서 부팅할때마다 실행된 autoexec.bat 파일과 같은 맥락이다.

사용자가 로그인할 경우 /etc/profile과 각 사용자의 ~/.bash_profile 스크립트 내용이 실행된다.

 

둘의 차이점은 

/etc/profile : 시스템 전역(모든사용자들)에 대한 환경설정파일

~/.bash_profile : 개인사용자들에 대한 환경설정 파일

'Linux > Centos' 카테고리의 다른 글

한글 깨진글자의 파일 지우기  (0) 2020.11.05
Find 명령어 (절대경로 포함 찾기)  (0) 2020.07.08
심볼릭 링크 생성하기  (0) 2020.06.26
콘솔 프롬프트 절대경로 표시하기  (0) 2020.06.26
vi 편집기 명령어  (0) 2018.10.29

vi ~/.bash_profile

 

export PS1=`hostname`:'$PWD>'
set -o vi

 

로그아웃 후 다시 접속

'Linux > Centos' 카테고리의 다른 글

한글 깨진글자의 파일 지우기  (0) 2020.11.05
Find 명령어 (절대경로 포함 찾기)  (0) 2020.07.08
심볼릭 링크 생성하기  (0) 2020.06.26
/etc/profile이랑 ~/.bash_profile 차이는?  (0) 2020.06.26
vi 편집기 명령어  (0) 2018.10.29

Swiper API 공식 홈페이지 http://idangero.us/swiper/

 

Swiper - Most Modern Mobile Touch Slider

Swiper Swiper - is the free and most modern mobile touch slider with hardware accelerated transitions and amazing native behavior. It is intended to be used in mobile websites, mobile web apps, and mobile native/hybrid apps. Designed mostly for iOS, but al

idangero.us

 

 

다운로드 링크 https://github.com/nolimits4web/swiper/releases

필요한 버전을 다운을 받고 압축을 풀어줍니다.

CSS 파일 : /dist/css/swiper.min.css
JS 파일 : /dist/js/swiper.min.js

 

 

Swiper Demo를 적용한 모습입니다.

 

 
 

 

Swiper 잘 정리해놓은 블로그 주소 http://ktsmemo.cafe24.com/s/SwiperJS/358

DataGrip은 우리가 흔히 알고 있는 AndroidStudio, IntelliJ를 만든 JetBrains DB관련 개발 툴 입니다.

 

 

설치 방법은 해당  JetBrains 홈페이지에 접속하여 직접 다운로드 하여 설치하는 방법이 있고

데이터그립 다운로드 https://www.jetbrains.com/datagrip/

 

DataGrip: The Cross-Platform IDE for Databases & SQL by JetBrains

A powerful IDE from JetBrains for SQL on macOS, Windows, and Linux.

www.jetbrains.com

 

다운로드 페이지

 

 

 

 

 

 

 

 

JetBrains 툴 박스에서 설치하는 방법이 있습니다.

 

툴박스 다운로드 https://www.jetbrains.com/toolbox/app/

 

Toolbox App: Easily Manage JetBrains Product Updates

Open any of your projects in any of the IDEs with one click.

www.jetbrains.com

 

에러내용: The server time zone value ‘KST’ is unrecognized or represents  

 

에러원인: My SQL 5.1.X 이후 버전부터 KST 타임존을 인식하지 못하는 이슈가 있다

 

에러조치: Database 부분에 맨뒤에 ?serverTimeZone=Asia/Seoul 이라고 적어준다.

 

 

 

그 외 해결 방법들 

출처 : https://yenaworldblog.wordpress.com/2018/01/24/java-mysql-%EC%97%B0%EB%8F%99%EC%8B%9C-%EB%B0%9C%EC%83%9D%ED%95%98%EB%8A%94-%EC%97%90%EB%9F%AC-%EB%AA%A8%EC%9D%8C/

 

1. config.xml 에서 url에 serverTimezone 추가

jdbc:mysql://ip:port/TestDB?characterEncoding=UTF-8&serverTimezone=UTC
jdbc:mysql://ip:port/TestDB?characterEncoding=UTF-8&serverTimezone=UTC

The reference to entity “serverTimezone” must end with the ‘;’ delimiter.  에러가 발생할 경우 & 대신에 &  사용

jdbc:mysql://ip:port/TestDB?characterEncoding=UTF-8&serverTimezone=UTC
 

2. mysql 에서 타임존 추가

방법 1
Add in mysql config file in section [mysqld]

default_time_zone='+03:00'

REPORT THIS AD

And restart mysql server:

sudo service mysql restart
 

방법 2
mysql 서버의 타임존을 “Asia/Seoul” 로 지정 (http://blog.naver.com/wizardkyn/220852348757)
 

2. CLIENT_PLUGIN_AUTH is required : SSL 미사용 에러

: Error updating database. Cause: java.sql.SQLNonTransientConnectionException: CLIENT_PLUGIN_AUTH is required

– 해결 –

mysql 버전이 낮으면 어쩔수 없음

mysql-connector-java 버전을 낮추거나 mysql 버전 업그레이드 진행 필요

1. url 에 파라미터 추가 (& 에러 발생시 & 로 대체)

verifyServerCertificate=false&useSSL=false
 

 

3. LOADING CLASS `COM.MYSQL.JDBC.DRIVER’. THIS IS DEPRECATED. THE NEW DRIVER CLASS IS `COM.MYSQL.CJ.JDBC.DRIVER’. THE DRIVER IS AUTOMATICALLY REGISTERED VIA THE SPI AND MANUAL LOADING OF THE DRIVER CLASS IS GENERALLY UNNECESSARY.
: driver 이름 변경 필요

– 해결 –

driver 명 수정

변경 전: com.mysql.jdbc.Driver
변경 후: com.mysql.cj.jdbc.Driver

'DB > MySQL' 카테고리의 다른 글

SQL문 설명  (0) 2019.06.09
MySQL 소개 및 설치  (0) 2019.06.09
[MySQL] employees 샘플 데이터 다운로드  (0) 2019.06.08

+ Recent posts