일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
- Eclipse
- Oracle
- install
- RabbitMQ
- 천단위
- php
- TPL
- jQuery
- JavaScript
- yum
- centos
- TextBox
- smarty
- SVN
- i18n
- mariadb
- MySQL
- 부모창
- docker
- Selectbox
- 문자열자르기
- 한글 깨짐
- Python
- Postfix
- 확장자
- ubuntu
- random
- 일괄변경
- replace
- Today
- Total
목록Linux (55)
wilson's story
ubuntu terminal 에서 tab 했을때 에러 날때 에러 : _get_comp_words_by_ref: command not found 1차로 아래와 같이 해본다 apt-get install bash-completion exec bash type _init_completion 에러 : bash: type: _init_completion: not found bash-completion 를 설치 적용 했는데도 에러가 난다면 # 파일 확인 /usr/share/bash-completion/bash_completion vi ~/.bashrc # 맨마지막 줄에 추가 source /usr/share/bash-completion/bash_completion exec bash type _init_completion
ubuntu 절전모드 해제 sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target 절전모드 확인 sudo systemctl status sleep.target suspend.target hibernate.target hybrid-sleep.target 절전모드인 상태 절전모드가 해제가 되었을때 절전모드 활성화 sudo unmask status sleep.target suspend.target hibernate.target hybrid-sleep.target
현재 설정된 시간 확인 timedatectl -> 결과 Time zone: Etc/UTC (UTC, +0000) 초기 기본값 시간 세팅 sudo dpkg-reconfigure tzdata 키보드로 입력하여 이동이 가능하다 엔터로 설정 완료후 나오고 다시 확인 timedatectl -> 결과 Time zone: Asia/Seoul (KST, +0900) 으로 변경 된걸 확인할수 있다
maven 사이트 https://maven.apache.org/download.cgi Maven – Download Apache Maven Downloading Apache Maven 3.9.2 Apache Maven 3.9.2 is the latest release: it is the recommended version for all users. System Requirements Java Development Kit (JDK) Maven 3.9+ requires JDK 8 or above to execute. It still allows you to build against 1.3 and maven.apache.org # 다운받을 폴더로 이동 cd /tmp # 다운로드 wget https://dlcd..
mysql+pymysql://user:password@host:port/dbname 예) 패스워드에 @가 있을 다면 아스키코드(%40)로 변환해서 적용 mysql+pymysql://user:123@123@host:port/dbname mysql+pymysql://user:123%40123@host:port/dbname ASCII 코드 목록은 하단 참고 참고 : https://www.w3schools.com/tags/ref_urlencode.ASP HTML URL Encoding Reference W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popul..
한번에 구동중인 웹서비스의 포트를 찾아서 정지시켜주는 방법 kill -9 `netstat -tnlp|grep 찾을포트| awk '{ print $7 }'|grep -o '[0-9]*'` # 예) kill -9 `netstat -tnlp|grep 8080| awk '{ print $7 }'|grep -o '[0-9]*'`
RabbitMQ 에서 consumer의 기본 제한 시간은 30분(1800000ms)이다 이 시간을 변경하려면 /etc/rabbitmq/ 경로에서 rabbitmq.conf 파일을 새로 생성 하고 내용은 아래와 같이 작성 # 1시간으로 설정 rabbitmq.conf consumer_timeout = 3600000 시간값은 ms(미리세컨드) 단위로 설정해준다 적용후 재기동 해주면 된다 systemctl restart rabbitmq 참고: https://www.rabbitmq.com/consumers.html#acknowledgement-timeout
vi /etc/apt/apt.conf.d/20auto-upgrades # 자동업데이트 APT::Periodic::Update-Package-Lists "1"; APT::Periodic::Unattended-Upgrade "1"; # 자동업데이트 막기 APT::Periodic::Update-Package-Lists "0"; APT::Periodic::Unattended-Upgrade "0"; vi /etc/apt/apt.conf.d/10periodic # 자동업데이트 APT::Periodic::Update-Package-Lists "1"; APT::Periodic::Download-Upgradeable-Packages "0"; APT::Periodic::AutocleanInterval "0"; # 자동업데..
GPU가 필요한 Docker 를 실행 하면 에러가 나는경우 docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]]. 해결 방법 : distribution=$(. /etc/os-release;echo $ID$VERSION_ID) curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-do..
Ubuntu 18.04에서 Mairadb 를 이것저거서 설정하다 망가졌다 싶을때는 삭제 후 다시 설치 하는게 맘이 편하다 삭제하는 방법 sudo apt-get purge mariadb-server sudo apt-get purge mariadb-common sudo rm -rf /var/log/mysql sudo rm -rf /var/log/mysql.* sudo rm -rf /var/lib/mysql sudo rm -rf /etc/mysql sudo apt-get remove --purge mariadb sudo apt-get purge mariadb* sudo apt-get purge mysql* sudo apt-get autoremove sudo apt-get autoclean