git clone --branch {branch name} {git url}

.git 폴더 삭제

소스 갈무리

git init

git add .

git commit -m "소스 최초 복사"

git remote add origin {git url}

git push --set-upstream origin {master? main?}

 

--develop 브랜치 생성

git branch develop

git checkout develop

git push origin develop

'Dev-Git' 카테고리의 다른 글

git rebase ~  (0) 2023.09.13
git사용법  (0) 2019.12.03

/*todo*/

    # vue build 시점에 환경변수 or 실행변수로 api url을 주입하는 방법 dotenv로 환경 변수를 .env 파일로 관리하기 | Engineering Blog by Dale Seo

    # vue를 node index 로 실행하여 build소스 연결 실운영 서버에 배포 관련 질문 드립니다~ - 인프런 (inflearn.com)

    # ssl적용 (front?)

 

 

/*nginx*/

    # 설치

        확인: yum list installed nginx

        제거: yum remove nginx(package_name) centos7 yum nginx 삭제 :: rohnotes (tistory.com)

    # 사이트별 환경설정 Rocky Linux에서 NginX 설치, 설정하는 방법 | 써드아이시스템 기술문서 (3rdeyesys.com)

    # nginx -s reload/stop, nginx, sudo service nginx restart

        nginx 서버 재시작 하는 방법 restart / reload (webisfree.com)

    # 권한문제 Nginx 403 (13 Permission denied) 해결하기 (tistory.com)

 

/*rocky*/

    # java 설치

        [ CentOS ] JAVA 11 설치, 환경변수 설정하기 (velog.io)

        yum list java*jdk-devel

        yum update

        yum install javaversion        

    # 환경변수 코딩트리 (tistory.com)

    # 13: permission denied > setsebool -P httpd_can_network_connect 1 >(setsebool -P httpd_can_network_relay 1

    # 머신종료> shutdown, systemctl poweroff, halt, init 0, shutdown -h now, reboot, init 6, shutdown -r now

    # 폴더복사> cp -r src target/

    # 네트워크폴더

        mount -t cifs -o usrname=?,password=? '\\ip\sharedname' /home/?/ ... umount foldername

        [linux] 서버간 공유폴더 설정하기 (tistory.com)

    # front / spring 배포 방식>

        [vue] vue와 spring 연동하는법(vue 배포방법) (tistory.com),

        1. 웹서버에 연동(nginx,appach,iis)

        2.was에 연동(spring build)

    # 포트개방 및 방화벽

        firewall-cmd --zone=public --permanent --add-port=80/tcp

        firewall-cmd --reload

        firewall-cmd --zone=public --list-all

        Rocky Linux - Firewall 방화벽 (tistory.com)

    # 네트워크 feat: wifi

        nmcli device status, nmcli connection show

            > unmanaged: nmcli device set netcardid managed yes

        nmtui

        systemctl restart NetworkManager

        dnf install elrepo-release > dnf config-manager --set-enabled elrepo-kernel > dnf install kernel-ml

        nmcli networking on

        sudo dnf 

    # ip확인

        hostname -I, ifconfig, ip addr show, ip a

    # 폴더권한

        nginx forbidden 403 error 에러 (tistory.com)

        NGINX 403 Forbidden (웹서버 403 오류) | 개기심사 - 개발 블로그 (devfoxstar.github.io)

    # 압축

        설치: sudo dnf install zip unzip

            How to Install and Use Zip in Rocky Linux 9 (linuxhint.com)

            [Linux] tar, gz, zip 압축 및 압축 해제 :: 불곰 (tistory.com)

    # 단축키 터미널 팁 - 페이지 스크롤링 등 (tistory.com)

    # telnet 설치 sudo apt-get install telnetd telnet

 

/*java*/

    # 백그라운드 실행

        nohup java -Dvariable_name=/home/? -jar /home/app/app.jar --spring.profiles.active=product &

        확인: ps -ef|grep 'appname'

    # mssql접속 시 ssl 인증서 키 오류

        update-crypto-policies --set LEGACY

        java.security > jdk.certpath.disabledAlgorithms 주석 노력이 나를 만든다. :: [MS SQL] JDBC 접속시 평문인데 SSL 암호 뜰때 대처법 (tistory.com)

        

 

 

/*vi*/

    # 찾기: / or ?검색어, 계속찾기: n or N vi 문자열 찾기 및 문자열 바꾸기 총정리 (tistory.com)

 

 

/*git*/

    # git clone -b branchname http://a.com/git/app.git 

 

 

/*vue*/

    # 인증서 Vue.js에 SSL 인증 추가하기(https) (tistory.com)

 

'Dev-Linux' 카테고리의 다른 글

리눅스 ssh 로그아웃 시 서비스 유지하는 방법  (0) 2023.09.13

npm install request --save

npm install node-cron

 

list.js

module.exports ={
  getUrls: function() {
      return [
            'http://~',
            'http://~2',
      ]
  }
};

 

app.js

const list = require('./list')
const cron = require('node-cron');
const request = require('request');
console.log(list.getUrls());

cron.schedule('1,19,37,56 * * * *', function(){
  try{
    var headers = { 'Content-Type': 'text/html'
      , 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.36' 
      , 'Cookie': '필요한쿠키명=쿠키값'
    };
    const urls = list.getUrls();
    urls.forEach((el) => {
      request(el, {followRedirect: true, headers: headers}, (error, response, body)=>{
        console.log(el, response.statusCode);
      });
    })

  }catch(error){
    console.log(error)
  }
  
});

 

설치: npm install

실행: node app

+ Recent posts