여러가지 방법이 있었다

 

 

yum clean all 이걸로 한방에 해결보는 사람도 있었는데

 

나는 일단 아니였고 ..

 

 

mv /var/lib/rpm/__db* /tmp

rpm --rebuilddb

 

이걸로 해결보는사람도 있었는데 물론 난 아니였고 ^^

 

 

yum clean dbcache
yum history new

 

결국 이 두개 조합으로 해결했다

 

후후 ..

 

 

 

https://forums.fedoraforum.org/showthread.php?260195-Problem-with-yum-Error-database-disk-image-is-malformed

 

Problem with yum; Error: database disk image is malformed

Re: Problem with yum; Error: database disk image is malformed Wooow, such an old thread and it helped me perfectly!! Thanks guys for all the tips!! I think, therefor I am, I think....

forums.fedoraforum.org

 

 

 

아 .. AMD랑 VM이랑 뭐가 있는건지 intel에서 쓸때랑 뭔가 너무 다른것같다 ...

 

 

ㅡㅡ ...

 

아무튼

 

Entering emergency mode. Exit the shell to continue... 어쩌구 저쩌구로

 

비상 쉘이나오면

 

아래의 명령어입력 후

xfs_repair -v -L /dev/dm-0

 

Ctrl-Alt-Delete 로 재부팅하면 잘 실행된다

 

 

https://forums.centos.org/viewtopic.php?t=73689&p=310322

 

How to fix "Entering emergency mode. Exit the shell to continue." - CentOS

General support questions marbenoct2019 Posts: 8 Joined: 2019/10/19 11:18:28 Post by marbenoct2019 » 2020/03/11 00:32:36 Hi All, There is a brownout here while my centos7 is power on. When I reboot my centos 7, it won't boot normally. The error message is

forums.centos.org

 

 

 

 

 

이번에 이직한 회사는 개발망 외부망이 완전히 분리된 환경이라

 

 

개발하기가 쉽지 않다 ..

 

여러개의 Docker for Windows 버전을 설치하던와중에 아래와 같은 문제가 있었다

 

 

 

 

다행히도 해결방법이 쉽게 되어 있어서 참고했다 아래를 참고하자

 

Kill the installer process if it's still running.
Run Regedit.
Run a quick backup of the registry by selecting File > Export (It is recommended that you set the export range to All.)
Navigate to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
If there is a Docker for Windows entry, delete key and all subkeys.
Relaunch the installer, and you should no longer be prompted to update. The installer should proceed as a fresh install from this point.

 

 

똑같이 레지스트리 편집기에서 Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall경로의 Docker 관련 파일을 지우니까 설치가 잘 됐다

 

반드시 레지스트리 편집기는 백업하는걸 추천한다 

 

 

https://success.docker.com/article/dockerforwin-install-fails-on-installationmanifestjson

 

Docker - Docker.For.Win - Install fails on installationmanifest.json

Issue Installation failed: Could not find file C:\Program Files\Docker\Docker\installationmanifest.json. Tried to upgrade Docker for Windows to version 17.06.O-rc2-ce-win14 and the installed failed. This happened when trying to upgrade, as well as after un

success.docker.com

 

 

 

 

도움이 될만한 내용인지는 잘 모르겠지만

 

Spring + Thymeleaf + Jquery 환경에서

 

Spring -> Thymeleaf로 Entity를 Dto로 감싸지 않고 보냈을때

 

net::ERR_INVALID_CHUNKED_ENCODING 200 같은 엉뚱한 에러가 났었는데

 

만약 JPA에서 Json데이터를 보낼때 @JsonIgnore, 또는 Dto가 아닌 쌩 엔티티를 보냈는지 확인해보자

 

도움이 됐으면 좋겠당 ...

 

 

 

 

 

minikube 실습 도중 

 

The "virtualbox" driver should not be used with root privileges. 이란 메시지가 출력되었는데

 

간단하게

 

minikube start --force를 입력하니 잘 됐당 ..

 

또는 루트사용자가 아닌 다른 사용자로 접속해도 minikube를 사용할 수 있다고하는데 해보진 않았다

 

 

https://github.com/kubernetes/minikube/issues/7083

 

The "virtualbox" driver should not be used with root privileges · Issue #7083 · kubernetes/minikube

minikube start --driver=virtualbox while I start the minikube on centos7 it throws the info,I know maybe the priveleges on stating virtualbox ,but I don't know how to change the virtualbox priv...

github.com

 

 

1. proxy.conf 파일 생성

sudo touch /etc/apt/apt.conf.d/proxy.conf

 

2. proxy.conf 파일에 다음 내용으로 프록시 설정

Acquire::http::Proxy "http://user:password@proxy.server:port/";

 

 

https://www.serverlab.ca/tutorials/linux/administration-linux/how-to-set-the-proxy-for-apt-for-ubuntu-18-04/

 

How to Set the Proxy for APT on Ubuntu 18.04 - Serverlab

Learn how to set APT proxy settings on Ubuntu Server to allow packages from remote repositories to be installed and updated when behind a proxy server.

www.serverlab.ca

 

 

 

도커 스웜은 2377, 7946, 4789 포트를 사용하기때문에

 

서버 클러스터를 구성하기 이전에 아래의 명령어로 포트를 열어주고 작업해야한다

 

 

firewall-cmd --zone=public --permanent --add-port=2377/tcp 
firewall-cmd --zone=public --permanent --add-port=2377/udp 
firewall-cmd --zone=public --permanent --add-port=7946/tcp 
firewall-cmd --zone=public --permanent --add-port=7946/udp 
firewall-cmd --zone=public --permanent --add-port=4789/tcp 
firewall-cmd --zone=public --permanent --add-port=4789/udp 

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

 

 

 

 

 

혹시만약 우분투 16.04에서 docker-ce 설치시

 

Package 'docker-ce' has no installation candidate

 

에러가 나온다면 아래 명령어를 실행해보는걸 추천한다.

 

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce

 

 

많은 방법이 있었지만 필자는 위 방법으로 docker-ce 를 설치했다.

 

 

https://unix.stackexchange.com/questions/363048/unable-to-locate-package-docker-ce-on-a-64bit-ubuntu

 

Unable to locate package `docker-ce` on a 64bit ubuntu

I'm trying to install Docker on a Ubuntu 64 machine following the official installation guide. Sadly Ubuntu seems it is not able to locate the docker-ce package. Any idea to fix it or at least to...

unix.stackexchange.com

 

+ Recent posts