Giter VIP home page Giter VIP logo

lhms's People

Contributors

choi4509 avatar cracker10605 avatar fortressll87 avatar ksh0165 avatar liwonace avatar pereullereun avatar rkwl71 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lhms's Issues

[docker] failed to get D-Bus connection: Operation not permitted

권한없는(non-privileged) 컨테이너를 실행중이라 생각됩니다.
systemd 는 CAP_SYS_ADMIN capability 가 요구되는데,
도커는 보안을 위해 권한없는 컨테이너에서는 해당 capability 를 활성화 시키지 않습니다.
또한 systemd 는 컨테이너 내의 cgroup 파일 시스템에 대해 RO(read only) 접근을 필요로 합니다.
이는 이미지 올릴때 "–v /sys/fs/cgroup:/sys/fs/cgroup:ro" 구문을 추가하여 해결할 수 있습니다.

docker 관련 에러 내용

에러 : docker : rpc error: code = 2 desc = oci runtime error: exec failed:

해결 : ping을 설치해주자

조치

apt-get install -y net-tools
apt-get install -y iputils-ping
apt-get update

docker container config setting for permission

reply :

  1. show docker container config
    docker inspect "docker container ID"

  2. docker container stop & docker service stop

  3. alter docker container config
    /var/lib/docker/containers/"container ID"/hostconfig.json
    -> "Privileged":true

  4. docker service start & docker container start

  5. alter kernel config value

ansible 설치 방법

ubuntu 18.04 이미지 사용

관련 패키지 설치

apt-get -y install software-properties-common
apt-get -y install ansible
apt-get install -y ansible
ansible

ANSIBLE_INVENTORY 환경 변수에 설정

echo "192.168.x.xx" > /.ansible/hosts
export ANSIBLE_INVENTORY=/.ansible/hosts
ansible 실행시 -i 옵션과 파일 경로 지정
ansible all -m ping -k -i ~/.ansible/hosts

Config 파일 생성

http://docs.ansible.com/ansible/intro_configuration.html

ansible 동작을 제어하는 설정 파일은 /etc/ansible/ansible.cfg 이며 ANSIBLE_CONFIG 환경 변수를 통해 설정할 수 있다.
export ANSIBLE_CONFIG=~/.ansible/ansible.cfg
정상 설정 여부는 다음과 같이 --version 을 주고 실행하면 된다.
앤서블 정상 접속확인 >
명령어 > ansible all -m ping -k

SSH password:
192.168.x.xx | SUCCESS => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"ping": "pong"
}

도커안 파일 복사

docker cp /root/HMS.tar e21ec52b24c6:/root

ansible 실행

예 ) ansible-playbook install_packages.yml

Apache

error message :

apache2: Syntax error on line 261 of /etc/apache2/apache2.conf: Cannot load modules/mod_proxy.so into server: /etc/apache2/modules/mod_proxy.so: cannot open shared object file: No such file or directory

solution :

apache2.conf (ubuntu 18.04)

->
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule cgi_module modules/mod_cgi.so

php rabbitmq web stome enable

find rabbitmq-plugins path

run > enable rabbitmq_web_stomp

rabbitmq restart

run > rabbitmqctl stop, rabbitmq-server start

Question

Question

Prerequisites

Please check the FAQ, and search existing issues for similar questions before creating a new issue.YOU MAY DELETE THIS PREREQUISITES SECTION.

  • I have checked the FAQ, and issues and found no answer.

Please Check Question Template..

Mariadb 관련 문구 내용

실패내용 : ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111 "Connection refused")

내용 : 외부 접속 권한 or 네트워크 대역폭이 다른 상황

config management

Which module is your feature request related to?
Plugin/UI etc

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

github 등록 작업

windows 10 gitbash 이용

shhong@DESKTOP-1BD067I MINGW64 /c/LHMS/lhms (master)
$ git add "README.md"

shhong@DESKTOP-1BD067I MINGW64 /c/LHMS/lhms (master)
$ git commit -m "README.md "

shhong@DESKTOP-1BD067I MINGW64 /c/LHMS/lhms (master)
$ git push origin master

unbuntu package (docker container)

오류 발생 상황 설명:

rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:235: starting container process caused "exec: "ping": executable file not found in $PATH"

해결책 :

ping을 설치해주자

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.