pecl sqlsrv pdo_sqlsrv (MSSQL) on CentOS 6

pecl install sqlsrv pdo_sqlsrv( configure or make error because of gcc version) make error core_conn.cpp  error: expected type-specifier #Gcc version must be 4.8.xx install wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo yum install devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++ #add /etc/profile export CC=/opt/rh/devtoolset-2/root/usr/bin/gcc export CPP=/opt/rh/devtoolset-2/root/usr/bin/cpp export CXX=/opt/rh/devtoolset-2/root/usr/bin/c++ #. /etc/profile or source /etc/profile pecl install sqlsrv pdo_sqlsrv  

AWS T2 Instances CPU Burstable

T2 Instances 에서만 나타남(cpu 작업이 많은 앱 구동을 한다면, 반드시 고려할 것) CPU Credit 이 다 소진될 경우 속도 제어에 걸려 느려짐 cpu credit balance check on aws cli aws cloudwatch get-metric-statistics –metric-name CPUCreditBalance –dimensions Name=InstanceId,Value=ixdfxxxxxxx-xxxx –namespace AWS/EC2 –start-time 2017-04-06T00:00:00 –end-time 2017-04-06T23:59:00 –period 300 –statistics Average http://awsdog.tistory.com/entry/EC2-T-Type-CPU-Credit-Part1 참조

mariadb package install

https://downloads.mariadb.org/mariadb/repositories/#mirror=kaist ubuntu 선택 -> 2. 릴리즈버전 선택 -> 3. 버전 10.1 선택(안정 버전) sudo apt-get install software-properties-common sudo apt-key adv –recv-keys –keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db sudo add-apt-repository ‘deb [arch=amd64,i386,ppc64el] http://ftp.kaist.ac.kr/mariadb/repo/10.1/ubuntu trusty main’ sudo apt-get update sudo apt-get install mariadb-server # RAM 16G cnf 설정 vim /etc/mysql/conf.d/mariadb.cnf [mysqld] collation-server = utf8_unicode_ci init-connect=’SET NAMES utf8′ character-set-server = utf8 소개 더보기 mariadb package install[…]

installation of php5.6 and MariaDB10.1 and Nginx1.10 on ubuntu 14

#PHP5.6 apt-get install software-properties-common apt-get install python-software-properties add-apt-repository ppa:ondrej/php apt-get update apt-get install php5.6   #MariaDB10.1 apt-key adv –recv-keys –keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db add-apt-repository ‘deb [arch=amd64,i386,ppc64el] http://ftp.kaist.ac.kr/mariadb/repo/10.1/ubuntu trusty main’ apt-get update apt-get install mariadb-server   #nginx 1.10.x add-apt-repository ‘deb http://nginx.org/packages/ubuntu/ trusty nginx’ apt-key adv –keyserver keyserver.ubuntu.com –recv-keys $key apt-get update apt-get install nginx

Windows IIS 8.5 Reinstall Failed

지정된 서버에 기능을 추가 또는 제거하는 요청이 실패했습니다. 재시작이 필요합니다. “installation failed” and “the server needs to be restarted to undo the changes.” 또는 powershell GetEnumerationState_Failed_Reboot_Required,Microsoft.Windows.ServerManager.Commands 우선, C:\Windows\iis.log 파일을 열어보면 다음과 같은 로그가 나옴. < WARNING! > Failed to detect if config redirection is enabled. result=0x80070490.Assuming config is not redirected and continuing. IIS 삭제 후 재설치시 소개 더보기 Windows IIS 8.5 Reinstall Failed[…]

use aws s3 on linux with s3fs command

ubuntu 14.04 install s3fs apt-get install automake autotools-dev g++ git libcurl4-gnutls-dev libfuse-dev libssl-dev libxml2-dev make pkg-config git clone https://github.com/s3fs-fuse/s3fs-fuse.git cd s3fs-fuse ./autogen.sh ./configure make make install # make credential file(use AWS IAM Credential) echo ‘MyAccessKeyId:SecretAccessKey’ > /etc/passwd-s3fs chmod 600 /etc/passwd-s3fs # if you don’t make any permission, You can see this ;s3fs should not have others permissions’ 소개 더보기 use aws s3 on linux with s3fs command[…]

grafana cloudwatch

http://docs.grafana.org/datasources/cloudwatch/ AWS credentials file /usr/share/grafana/.aws/credentials 수정 [default] aws_access_key_id = dfjladjfldajfldlajfdlfjdl aws_secret_access_key = djfladjlfaldfjlajdfldajlfjdlaf region = ap-northeast-1 [user] aws_access_key_id = djfladjfldaifdoafjdfjdlkjfdladfj aws_secret_access_key = djldjfldifjemfdjfdlamfldjfwljf region = ap-northeast-2a

telegraf AWS cloudwatch input configuration

[[inputs.cloudwatch]] # ## Amazon Region region = ‘ap-northeast-2a’ # AWS IAM 에서 생성한 값을 입력 access_key = “djfdlasjfiemcmc” secret_key = “jljkljijifefmm120Zdfjdkfjme” # # ## Requested CloudWatch aggregation Period (required – must be a multiple of 60s) period = ‘1m’ # ## Metric Statistic Namespace (required) 이 값은 AWS에서 정한 namespace 를 찾아서 입력한다. EC2일 경우 소개 더보기 telegraf AWS cloudwatch input configuration[…]