절전 -> 시작 이점
- 부팅속도가 줄어듬
===========================mobaxterm*===========================
[ec2-user@tomcat-server ~]$ sudo su -
Last login: Wed Jul 27 14:54:07 KST 2022 on pts/1
[root@tomcat-server ~]# tomcatup
Using CATALINA_BASE: /opt/tomcat
Using CATALINA_HOME: /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME: /usr
Using CLASSPATH: /opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar
Using CATALINA_OPTS:
Tomcat started.
-> tomcatup을 해줘야 페이지 로드
git clone을 통해 리포지토리에서 다운받은 폴더는 이메일, 이름 따로 설정 필요하지 않음
git clone https://github.com/seo369/hello-world.git
# vi index.jsp에서 2.0으로 바꿔주기
# git add index.jsp
# git commit -m "update v2.0"
# git push origin master
git clone https://github.com/seo369/hello-world.git
# vi index.jsp에서 3.0으로 바꿔주기
# git add index.jsp
# git commit -m "update v3.0"
# git push origin master
$ git add .
$ git commit -m "update v3.0"
$ git push origin master
# sudo yum install -y curl policycoreutils-python openssh-server openssh-clients perl
# sudo systemctl status sshd
# curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash //ce - free
# sudo sed -i "s/\/el\/7/\/amazon\/2/g" /etc/yum.repos.d/gitlab_gitlab*.repo
# sudo yum clean metadata
# sudo yum makecache
# sudo EXTERNAL_URL="http://tomcat.hyejin36.shop" yum install -y gitlab-ce
ee : Enterprise(유료) Edition --> ce : Community(무료) Edition
===========================mobaxterm===============================
$ sudo apt-get update
$ sudo apt-get install -y curl openssh-server ca-certificates perl
$ sudo apt-get install -y postfix
$ curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
$ sudo EXTERNAL_URL="http://gitlab.hyejin36.shop" apt-get install gitlab-ce
$ sudo cat /etc/gitlab/initial_root_password //비밀번호 확인
$ git remote remove origin
$ git remote add origin http://gitlab.hyejin36.shop/seoes/web-site.git
$ git push -uf origin master
개인계정 > 프로젝트 > settings > repository > Protected branches > expand > unprotected 클릭
개인계정 > 프로젝트 > settings > repository > Default branch > expand > master 변경