본문 바로가기

전체 글

Running docker container : iptables: No chain/target/match by that name 1. Clear all chains: sudo iptables -t filter -F sudo iptables -t filter -X 2. Then restart Docker Service: systemctl restart docker shareedit 더보기
docker 에 mysql 5.7버전 설치 1. docker image pulling docker pull mysql/mysql-server:tag 2. check images docker images 3. Starting a MySQL Server Instance docker run -d --env MYSQL_ROOT_PASSWORD="password" --env MYSQL_USER="username" --env MYSQL_PASSWORD="password2" --name "mysql_lod" -v /data/mysql:/var/lib/mysql -p 13306:3306 mysql/mysql-server:5.7 4. docker ps 5. mysql log check docker logs mysql_lod 6. docker 에서 mysql 콘솔.. 더보기
Firewalld가 실행되지 않거나 crash 되었을 때, Failed to start firewalld.service: Unit is masked Fixed Failed to start firewalld.service: Unit is masked Trying to Setup firewall rules for Kubernetes [root@k8-master-node ~]# firewall-cmd --add-masquerade --permanent FirewallD is not running [root@k8-master-node ~]# systemctl start firewalld Failed to start firewalld.service: Unit is masked. Fix [root@k8-master-node ~]# systemctl unmask firewa.. 더보기
Pycharm에서 flask로 개발할 때, 포트 변경하는 방법 Pycharm에서 flask로 개발할 때, 포트 변경하는 방법 Additional options Parameters of the flask run command. --host – the IP address of the web server to run your Flask application on. The default value is '127.0.0.1'. To make your web server externally visible, use the '0.0.0.0' value for this parameter. --port – the port of the web server. The default value is 5000 or it is the port number set in the SERVER_NAM.. 더보기
Pycharm에서 Unresolved Reference 에러 문제 해결 Pycharm을 이용하여 Python 개발을 하다보면 from ** import ** 구문에서 에러 메시지가 뜰 때가 종종 있다. 강박증이 있는 나로서는 코딩하는 내내 이 에러를 보자니 어지간히 괴로운 게 아니다. 그래서 찾아봤다. 아래는 해결 방법이다.pycharm 2019.03버전 기준이다. 1. File - settings - Build,Excution,Deployment-Console-Python Console 아래에 Add Source roots to PYTHONPATH에 체크 2. File - settings - Project:project - ProjectStucture 클릭하면 우측에 프로젝트 소스트리가 보일 것이다. 에러가 나는 파이썬 패키지를 우클릭하고 sources를 해준다. 3. A.. 더보기
eclipse 에서 gradle svn checkout 하는 방법 https://blog.csdn.net/qysh123/article/details/89597164 더보기