이 페이지의 일부 또는 전체 정보는 S3NS의 신뢰할 수 있는 클라우드에 적용되지 않을 수 있습니다.
시작 스크립트 정보
시작 스크립트는 가상 머신(VM) 인스턴스가 부팅될 때 실행되는 명령어가 포함된 파일입니다. Compute Engine은 Linux VM 및 Windows VM에서 시작 스크립트 실행을 지원합니다.
다음 표에는 시작 스크립트 사용 방법을 설명하는 문서 링크가 포함되어 있습니다.
시작 스크립트 태스크 |
최적의 용도 |
절차 링크 |
시작 스크립트 직접 전달 |
최대 256KB 스크립트 |
|
로컬 파일에서 시작 스크립트 전달 |
최대 256KB 스크립트 |
|
Cloud Storage에서 시작 스크립트 전달 |
256KB를 초과하는 스크립트 |
|
시작 스크립트에서 메타데이터에 액세스 |
동일한 스크립트를 사용하는 각 VM에 다른 값 전달 |
|
시작 스크립트 다시 실행 |
VM을 다시 시작하지 않고 스크립트 실행 |
|
시작 스크립트의 출력 보기 |
스크립트 진행 상태 모니터링 |
|
다음 단계
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-05-13(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-05-13(UTC)"],[[["Startup scripts are files containing commands that execute upon the boot of a virtual machine (VM) instance, supported by both Linux and Windows VMs."],["Startup scripts can be passed directly, from a local file, or from Cloud Storage, depending on the script's size, with direct and local files limited to 256 KB, and Cloud Storage for larger scripts."],["You can use startup scripts to pass different values to each VM via metadata."],["You can rerun a startup script without having to restart the VM."],["There is documentation to describe how to monitor the progress of a script when it is running, and also how to add a shutdown script."]]],[]]