아래의 예제와 같이 -webkit-text-size-adjust:none; 을 사용하면 된다. -webkit-text-size-adjust:none; /* 모든 태그에 적용 */ * { -webkit-text-size-adjust:none; } /* div 태그만 적용 */ div { -webkit-text-size-adjust:none; } /* text-size-adjust 클래스가 설정된 태그만 적용 ex) class="text-size-adjust"> */ .text-size-adjust { -webkit-text-size-adjust:none; }
nginx에 proxy를 설정 요청 시 브라우저에서 502 bad gateway 오류가 발생 한다. nginx 로그를 살펴 보면 아래와 같은 로그를 찾아볼 수 있다. 2019/09/09 17:54:46 [crit] 4813#4813: *23 connect() to 127.0.0.1:6300 failed (13: Permission denied) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "POST /api/test HTTP/1.1", upstream: "http://127.0.0.1:6300/api/test", host: "127.0.0.1", referrer: "http://127.0.0.1/test" 위의 ..
$ mysql <
MySQL server has gone away 에러가 발생하는 원인은 아래와 같습니다. - 커넥션이 끊어진 이후에 쿼리를 전송했을 때 - max_allowed_packet 을 초과하는 크기의 쿼리를 전송했을 때 - wait_timeout 을 초과하여 커넥션이 끊어진 경우 - 잘못된 쿼리를 지속적으로 전송하여 서버가 차단한 경우 대부분 MySQL 에 설정된 데이터 전송량이나 전송시간을 초과 하는 경우 발생합니다. 이런경우 MySQL 설정파일인 my.cnf 에서 아래 값을 변경해주시면됩니다. MySQL 기본값은 wait_timeout 8시간, max_allowed_packet 는 16M 입니다. wait_timeout = 28800 max_allowed_packet = 16777216 출처 : https:..
Go 언어로 윈도우 어플을 개발할 일은 별로 없겠지만 Go 언어로 Electron을 이용하여 윈도우 어플을 개발할수 있다.바로 go-astilectron 이다. Go 언어로 작성한 어플을 실행하면 Console 윈도우가 표시 된다.Console 윈도우를 숨기기 위해서는 Go 작성한 어플을 빌드할 때 아래와 같은 옵션을 주면 된다.$ go build -ldflags -H=windowsgui 파일명.go 참고https://stackoverflow.com/questions/36727740/how-to-hide-console-window-of-a-go-program-on-windowshttps://stackoverflow.com/questions/23250505/how-do-i-create-an-executab..
Repository 추가 $ sudo yum install -y https://centos7.iuscommunity.org/ius-release.rpm python3 및 필요 라이브러리 설치 $ sudo yum install -y python36u python36u-libs python36u-devel python36u-pip python 버전 확인 $ python3.6 -V Python 3.6.x python3 alias 추가 $ sudo ln -s /bin/python3.6 /bin/python3
출처 : https://gist.github.com/denji/12b3a568f092ab951456 Generate private key (.key) # Key considerations for algorithm "RSA" ≥ 2048-bit $ openssl genrsa -out server.key 2048 # Key considerations for algorithm "ECDSA" ≥ secp384r1 # List ECDSA the supported curves (openssl ecparam -list_curves) $ openssl ecparam -genkey -name secp384r1 -out server.key Generation of self-signed(x509) public key (PE..
참고 : https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/nginx.md * 이 글은 이미 인증서를 가지고 있는 경우의 내용이며 yum을 사용하여 gitlab를 설치한 경우 이다. * 그리고 아래의 내용은 gitlab.example.com 도메인 사용한 예시 이다. 인증서 파일 복사 (root 권한 사용) # etc/gitlab/ssl 폴더 생성 $ mkdir -p /etc/gitlab/ssl # 인증서 파일을 gitlab의 ssl 폴더에 복사 $ cp [인증서 파일].crt /etc/gitlab/ssl $ cp [인증서 파일].key /etc/gitlab/ssl GitLab 설정 파일 열기 (root 권한 사용) $ vi /e..
Backup yum을 사용하여 gitlab을 설치한 경우 아래의 명령 사용 $ sudo gitlab-rake gitlab:backup:create위 명령을 실행하고 나면 백업된 파일은 /var/opt/gitlab/bakups 폴더에 생성 된다. 소스를 가져다 gitlab을 설치한 경우 아래의 명령 사용 $ sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production 복구는 나중에 직접 해본 후 글을 남길 예정... 참고: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/raketasks/backup_restore.md
아래는 예제 이다. package main import ( "fmt" "os" "syscall" ) // ansi color const ( black = "\033[1;30m%s\033[0m" red = "\033[1;31m%s\033[0m" green = "\033[1;32m%s\033[0m" yellow = "\033[1;33m%s\033[0m" blue = "\033[1;34m%s\033[0m" purple = "\033[0;36m%s\033[0m" cyan = "\033[0;36m%s\033[0m" white = "\033[0;37m%s\033[0m" ) func init() { // cmd 에서 ansi color 활성화 시키는 부분 handle := syscall.Handle(os.Stdout..
1. Install and configure the necessary dependencies On CentOS 7 (and RedHat/Oracle/Scientific Linux 7), the commands below will also open HTTP and SSH access in the system firewall. sudo yum install -y curl policycoreutils-python openssh-server sudo systemctl enable sshd sudo systemctl start sshd sudo firewall-cmd --permanent --add-service=http sudo systemctl reload firewalld Next, install Postf..
$ mysql -u root Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 8 Server version: 5.5.56-MariaDB MariaDB Server Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> # 데이터베이스 생성 # https://mariadb.com/kb/en/library/create-database/ # CREATE DATAB..
먼저 다음 URL을 보고 yum repository를 설정 한다. https://downloads.mariadb.org/mariadb/repositories/#mirror=kaist&distro=CentOS&distro_release=centos7-amd64--centos7&version=10.2 아래의 내용을 /etc/yum.repos.d/MariaDB.repo 파일에 저장 한다. # MariaDB 10.2 CentOS repository list - created 2018-01-11 07:40 UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10..
# PostgreSQL repository 설치 $ rpm -Uvh https://yum.postgresql.org/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm # PostgresQL 설치 $ yum install postgresql10-server postgresql10 # PostgreSQL DB 초기화 $ /usr/pgsql-10/bin/postgresql-10-setup initdb #PostgreSQL 실행 $ systemctl start postgresql-10.service $ systemctl enable postgresql-10.service # postgre 계정 비밀번호 변경 $ su - postgres -c "psql" psql (..
※ 아래의 모든 과정은 root 권한으로 진행 해야 한다. 1. 우선 yum update를 한다. $ yum update 2. docker의 yum repo를 추가 한다. $ vi /etc/yum.repos.d/docker.repo #아래 내용을 추가하고 저장한다. [dockerrepo] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/ enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg 3. docker package를 설치 한다.$ yum install docker-engine 4. docker를 실행한다.$ systemctl st..
CentOS 7 부터는 iptables 대신 firewalld를 기본으로 사용하는듯 하다. 방화벽에 포트 및 서비스 추가 # 서비스 추가 # 서비스 명에는 http, https, ssh 와 같은 서비스를 넣어주면 된다. # $ firewall-cmd --permanent --zone=public --add-service=서비스명 $ firewall-cmd --permanent --zone=public --add-service=http # 포트 추가 # $ firewall-cmd --permanent --zone=public --add-port=포트번호/프로토콜 $ firewall-cmd --permanent --zone=public --add-port=80/tcp 방화벽에 포트 및 서비스 삭제 # 서비스..
bcrypt 설치 go get -u -v golang.org/x/crypto/bcrypt 예제 코드 package main import ( "golang.org/x/crypto/bcrypt" ) func main() { pwd := "abcdefg1234" hashedPwd, err := GeneratePassword(pwd) if err == nil { equalPwd := EqualPassword(hashedPwd, pwd) fmt.Println("hashed password : ", hashedPwd) fmt.Println("equal password : ", equalPwd) } } func GeneratePassword(password string) (string, error) { pass :=..
- Total
- Today
- Yesterday