본문 바로가기

STUDY/ECT

(24)
M1 puppeteer 오류 brew로 일단 설치.. $ brew install chromium ## 재설치 $brew reinstall --cask chromium 설치 확인 $ which chromium ~./zshrc에 경로값을 잘 가져오도록 환경변수 등록 # chromium export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true export PUPPETEER_EXECUTABLE_PATH=`which chromium` 그래도 오류가 났다 /usr/bin/chromium-browser경로에 크롬이 없다고.. Error: Failed to launch the browser process! spawn /usr/bin/chromium-browser ENOENT node_modules/puppeteer/lib/..
Nginx | 로그 경로 바꾸기 + permission denied 로그 경로를 바꾸는 설정은 간단하다. conf파일에서 설정해주면 되고, 각 서버 블록 안에 넣으면 서버별로 따로 로그가 생성된다. server { access_log /foo/bar/access.log; error_log /foo/bar/error.log; } 참고로 Nginx 기본 로그 경로는 /var/log/nginx다. SELinux를 사용할 때는 아래와 같은 permission dined가 발생할 수 있다. [emerg] ... : open() "/foo/bar/access.log" failed (13: Permission denied) SELinux도 로그를 남긴다. /var/log/audit/audit.log경로에서 친절하게 찍어주고 있었다.. # tail /var/log/audit/audit..
Nginx | bind() to 0.0.0.0:8000 failed (13: Permission denied) SELinux가 활성화 되어 있는지 먼저 확인하면 좋다. enforcing 상태라면 아래 오류가 발생할 것이다.. Nginx를 실행하니 bind() to 0.0.0.0:8000 failed (13: Permission denied) 해당 오류가 확인됐다. 8000포트에 권한이 없어서 발생한 오류로, semanage를 이용해 http 포트를 추가해주어야 한다. 먼저 http port로 설정된 값들을 확인한 뒤, 사용하려는 포트가 없다면 추가해준다. # semanage port -l | grep http_port_t # semanage port -a -t http_port_t -p tcp 8000 Modifying SELinux Settings for Full NGINX and NGINX Plus Funct..
CentOS 7 nginx install, ReactJS 배포 yum에 nginx를 위한 외부 리포지토리를 추가한다. /etc/yum.repos.d폴더 내에 nginx.repo파일을 생성한다. $ touch nginx.repo $ vi nginx.repo그 후 아래 내용 붙여넣기 [nginx] name=nginx repo baseurl=https://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=0 enabled=1 centOS의 버전이 5혹은 6이라면 $releassever에 직접 버전을 입력한다. 외부 리포지토리를 연결한 후, yum을 이용해 설치한다. $ sudo yum install nginx conf파일을 작성해야 하는데, 리액트를 기준으로 작성했다. /etc/nginx/conf.d폴더 아래에 새로운..
MacOs | Warning: the fonts "Times" and "Times" are not available for the Java logical font "Serif"... MacOs를 이번에 Monterey로 업데이트했는데.. Warning: the fonts "Times" and "Times" are not available for the Java logical font "Serif", which may have unexpected appearance or behavior. Re-enable the "Times" font to remove this warning.에러 발생.. Times서체가 없다고 뜨는거였다.. Times서체를 설치하면 해결된다.. 공유를 위해 작성해봅니다.. [https://stackoverflow.com/questions/68608157/how-can-i-fix-this-warning-the-fonts-times-and-times-are-not-av..
homebrew tomcat8 설치 원하는 버전을 뒤에 붙이면 됨 brew list로 톰캣 install 확인 brew install tomcat@8 brew list /opt/homebrew/Cellar/tomcat@8/8.5.68/bin경로로 이동 후 톰캣 실행 ./catalina start http://localhost:8080 으로 접속했을 때 톰캣 화면이 뜨면 실행 성공 톰캣 중지 ./catalina stop
oh-my-zsh 단축어 등록 ~/.zshrc파일을 수정하면 된다. # visual studio code로 열어서 수정하기 $ code ~/.zshrc # vi 편집기 $ vi ~/.zshrc 스크롤을 쭉 내리다보면 친절하게 예시까지 들어서 단축어 등록 방법을 알려주고 있다. alias [단축어]=["실제 명령어"]로 입력 # Set personal aliases, overriding those provided by oh-my-zsh libs, # plugins, and themes. Aliases can be placed here, though oh-my-zsh # users are encouraged to define aliases within the ZSH_CUSTOM folder. # For a full list of acti..
Visual Studio Code | Prettier가 안 먹힐 때! 일단 Prettier가 설치 되어 있는지... 확인을 하세요.. 명령팔레트 cmd + ,로 명령 팔레트에 접근할 수 있다. 그리고 format을 검색! Default Formatter 확인 기본 포맷터가 프리티어로 설정돼 있는지 확인하자. 아니라면 Prettier로 설정하기 Format On Save 설정 확인 저장할 때 자동으로 코드 정리되도록 이 설정도 활성화