Codit Develop
[C#] ASP.NET API Cors 전체 허용
ASP.NET API Cors 허용 UseCors 설정 http, https 허용 # Program.cs var app = builder.Build(); app.UseCors(x => { x.AllowAnyHeader(). AllowAnyMethod(). AllowAnyOrigin(). SetIsOriginAllowed(origin => true). WithOrigins("http://*"). WithOrigins("https://*"). AllowCredentials(); });
[Docker] docker run 사용법
Docker Run 기본 실행 명령어 일반 실행 # docker run [Options] [Image[:version]] [Command] docker run centos:centos8 입력 모드 실행 Container 생성 후 bash/sh로 바로 접속 exit 입력 시 Container 밖으로 빠져나올 수 있음. (Container는 종료됨) docker run -it centos:centos8 Background에서 실행 Container 생성 후 Background에서 실행 해당 Image의 EntryPoint / CMD 에 설정된 실행 Command가 종료될 때 까지 Container 유지 Command 종료 시 Container Stop docker run -d centos:centos8 추가..
[MySQL] Database 백업 / 복구
MySQL Backup / Restore MySQL Backup (using mysqldump) 전체 Database 백업 # mysqldump -u [계정] -p '[비밀번호]' --all-databases > [Backup file name].sql mysqldump -u root -p 'qwer1234' --all-databases > backup.sql # DDL 정보만 백업 (데이터 X) # mysqldump -u [계정] -p '[비밀번호]' --all-databases --no-data > [Backup file name].sql mysqldump -u root -p 'qwer1234' --all-databases --no-data > backup.sql 특정 Database 백업 # mys..