Linux23 디렉토리 내에 파일 내용 변경 find * -type f -exec sed -i 's/"js\//"\/resources\/js\//g' {} \;find * -type f -exec sed -i 's/"css\//"\/resources\/css\//g' {} \;find * -type f -exec sed -i 's/"img\//"\/resources\/img\//g' {} \;find * -type f -exec sed -i 's/"\/resources\/js\//"\/resources\/js\/common\//g' {} \;/resources/js/ find * -type f -exec sed -i 's/"css\/style.css/"\/resources\/css_new\/style.css/g' {} \;find * -type f.. 2018. 8. 15. JAVA_HOME 위치 - yum install 시에 /usr/lib/jvm 하단에 해당 설치된 java 가 존재함. 2018. 5. 9. Linux default Group 설정 #setfacl -R -m default:group:그룹명:wrx=> 디렉토리에서 선언하면 됨 2018. 4. 25. Timezone 변경 가. /etc/sysconfig/clock 수정Zone="Asia/Seoul" 나. /etc/localtime 변경# cp -p /usr/share/zoneinfo/Asia/Seoul /etc/localtime 2018. 4. 24. subversion 설치 1. subversion 설치 #yum install subversion#svnadmin create --fs-type fsfs /home/svn/repos 2. 환경설정하기 /home/svn/repos/conf/svnserve.conf/home/svn/repos/conf/passwd.conf /etc/init.d/svnserveOPTIONS="-r /home/svn --listen-port 0000"포트를 변경하고 싶을 경우 뒤쪽에 입력한다. 기존 3390 2018. 4. 19. nginx 내부에서 redirect 시키기 socket.io 패스를 변경할 경우 기존 경로 처리도 동반되어야 한다. GET /socket.io/?EIO=3&transport=websocket&sid=7s_G-xWsSJ9lxK7ZAAAP HTTP/1.1 socket.io 패스를 xxx 로 변경하고 싶다면 nginx redirect 하는 부분에도 socket.io 를 받아서 처리해줘야 한다. location /socket.io/ { rewrite ^/socket.io/(.*) /xxx/$1; proxy_pass http://mysite; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header .. 2018. 1. 30. nginx redirect 시에 socket-io 에서 client ip 얻어오기 nginx 에서 환경 설정 가. 아래 두개의 옵션을 필수 로 컴파일 한다.--with-http_ssl_module --with-http_realip_module 나. conf 파일 server { listen 8080; real_ip_header X-Forwarded-For; real_ip_recursive on; location / { proxy_pass http://mysite; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set.. 2018. 1. 23. nginx 에서 307 internal redirect 가 발생하는 경우 HTTP Strict Transport Security 설정 #add_header Strict-Transport-Security "max-age=31536000"; 위의 항목이 있는지 확인한다.Loadbalancing 의 경우는 빼야 함... 이것 때문에 완존 고생...영구적으로 redirect 시킬경우는 넣어주는 것이 좋다. 2018. 1. 16. logrotate 사용법 가. 사용 환경 설정 /etc/logrotate.conf /etc/logrotate.d /usr/sbin/logrotate /var/lib/logrotate.status 나. 기본 설정/etc/logrotate.d 에 사용하고자 하는 logfile 위치를 입력한다. # /etc/logrotate.d/project /home/gooddev/project/logs/output.log/home/gooddev/project/logs/project.log { daily rotate 30 missingok dateext postrotate touch /home/gooddev/project/logs/project.log touch /home/gooddev/project/logs/output.log endscript}.. 2018. 1. 15. CentOS 6 Node JS 설치하기 $ curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -$ sudo yum install gcc-c++ make$ curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo$ yum install nodejs npm 2017. 6. 19. 이전 1 2 3 다음