shellscript3 shell script-curl 활용하여 REST API 요청 요약 - shell script에서 REST API 요청 Solution [GET] curl -H "Content-Type: application/json" -X GET http://localhost:3000 [POST] #linux curl -H "Content-Type: application/json" -d "{'key': 'value'}" -X POST http://localhost:3000 #windows curl -H "Content-Type: application/json" -d "{""key"": ""value""}" -X POST http://localhost:3000 2022. 8. 12. M1-docker image pull 요약 - M1 환경에서 docker image를 pull하는 경우 환경 차이로 거부당할 수 있다. Error no matching manifest for linux/arm64/v8 in the manifest list entries Solution docker pull --platform linux/x86_64 {image_name} 2022. 8. 11. CentOS - 최신 버전 NodeJS 설치 요약 - CentOS의 경우 바로 nodeJS를 설치하면 아주 낮은 버전이 설치될 수 있다. Solution # package update sudo yum -y update # 이미 설치되어 있는 경우 삭제한다.(아닌 경우 생략) sudo yum remove -y nodejs yum install -y gcc-c++ make # 16버전 기준 curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - sudo yum install -y nodejs 2022. 8. 10. 이전 1 다음 반응형