System 70

[명령어] echo - 파일에 내용 추가하기, 덮어쓰기

sed를 활용해서 파일 내용을 수정할 수 있습니다. https://forcloud.tistory.com/91 echo로도 파일 내용을 수정할 수 있습니다. e 옵션으로 특수문자 (\n 줄바꿈)등등 사용할 수 있습니다. 덮어쓰기 = '>' 추가하기 = '>>' 예시) # vi test.sh echo -e "[DEFAULT]\n\ ncloud_access_key_id = [키값1]\n\ ncloud_secret_access_key = [키값2]\n\ ncloud_api_url = https://ncloud.apigw.gov-ntruss.com" > $HOME/.ncloud/configure 예시) # echo -e "\nTEST" >> test.txt test.txt 에 줄바꿈 후 TEST를 추가합니다.

System/명령어 2021.05.18

[명령어] zip, unzip - 묶어서 압축하기

묶어서 압축하는 방법은 tar.gz 등등 있지만 zip를 활용하는 방법도 있습니다. 윈도우에서 편하게 압축 해제 가능합니다. 사용하기전에 설치가 필요할 수 있습니다. 설치 되어 있는지 확인하시고 없으면 설치하면 됩니다. # apt list -a zip unzip # rpm -qa | grep zip # zip -r [압축파일] [원본] # zip -r abc.zip xyz xyz 디렉토리(파일)을 abc.zip로 압축 r 옵션으로 하위 디렉토리까지 모두 압축합니다. # unzip [압축파일] # unzip [압축파일] -d [원하는 위치] # unzip abc.zip # ls abc.zip xyz 압축했던 원본명으로 해제됩니다.

System/명령어 2021.05.18

[Windows Server 2016] IIS + tomcat 연동

JAVA 설치 : https://forcloud.tistory.com/88 Tomcat 설치 : https://forcloud.tistory.com/89 1. ISAPI 설치 IIS 에서 ISAPI를 추가합니다. 2. Tomcat Connecter 설치 설치파일 다운로드 링크 : https://mirror.navercorp.com/apache/tomcat/tomcat-connectors/jk/binaries/windows/tomcat-connectors-1.2.48-windows-x86_64-iis.zip 폴더 생성 및 bin 폴더에 'isapi_redirect.dll' 옮기기 3. Tomcat Connecter 설정 bin 폴더에 파일을 생성합니다. (isapi_redirect.dll 와 같은 위치) ..

[Windows Server 2016] Apache-Tomcat 10.0.6 설치

설치 파일 URL : https://tomcat.apache.org/download-10.cgi Apache Tomcat® - Apache Tomcat 10 Software Downloads Welcome to the Apache Tomcat® 10.x software download page. This page provides download links for obtaining the latest version of Tomcat 10.0.x software, as well as links to the archives of older releases. Unsure which version you need? Specification versi tomcat.apache.org IIS + tomcat 연동을 ..