'Linux/centos'에 해당되는 글 23건

  1. 2019.03.01 'abrt-cli status' timed out
  2. 2019.02.27 centos nfs client
  3. 2019.02.23 centos timezone 변경 2
  4. 2019.02.22 svn on centos
  5. 2019.02.13 smb on centos
  6. 2019.02.13 centos backup
  7. 2019.02.13 centos epel 저장소 추가
  8. 2019.01.28 KVM spice 원격 접속시 No route to host
  9. 2019.01.25 yum checkupdate
  10. 2018.12.03 centos 서비스 등록하기
Linux/centos2019. 3. 1. 13:07

볼륨 복사한다고 했더니 가상머신이 골골대서

로그인 오래걸리더니 다음과 같은 에러를 뿜어낸다

'abrt-cli status' timed out 


일단 abrt 로그인 시에 확인하지 않도록 해서 끄는 방법이 먼저 나오네..

[링크 : https://blog.inidog.com/p/20170203182]


+

버그 리포팅 툴이라..

Automatic Bug Reporting Tool; ABRT, abrtd

[링크 : https://zetawiki.com/wiki/리눅스_ABRT]

'Linux > centos' 카테고리의 다른 글

centos7 USB 설치 중 /dev/root dose not exist 에러  (0) 2019.07.02
httpd + php + selinux..  (0) 2019.03.20
centos nfs client  (0) 2019.02.27
centos timezone 변경  (2) 2019.02.23
svn on centos  (0) 2019.02.22
Posted by 구차니
Linux/centos2019. 2. 27. 17:42

centos 에서 nfs 마운트 하려는데 에러나면

# mount -t nfs 0.0.0.0:/ temp

mount: wrong fs type, bad option, bad superblock on 0.0.0.0:/,

       missing codepage or helper program, or other error

       (for several filesystems (e.g. nfs, cifs) you might

       need a /sbin/mount.<type> helper program)


       In some cases useful info is found in syslog - try

       dmesg | tail or so. 


nfs 패키지를 깔아줘야 한다. (망할!)

# yum install nfs-utils nfs-utils-lib


[링크 : https://moongblog.tistory.com/9]

'Linux > centos' 카테고리의 다른 글

httpd + php + selinux..  (0) 2019.03.20
'abrt-cli status' timed out  (0) 2019.03.01
centos timezone 변경  (2) 2019.02.23
svn on centos  (0) 2019.02.22
smb on centos  (0) 2019.02.13
Posted by 구차니
Linux/centos2019. 2. 23. 11:26
의외로 간단하게 변경이 가능하다.

# timedatectl list-timezones | grep -i seoul

# timedatectl set-timezone Asia/Seoul 

[링크 : https://www.fun25.co.kr/blog/linux-centos-7-change-timezone/?category=001]

'Linux > centos' 카테고리의 다른 글

'abrt-cli status' timed out  (0) 2019.03.01
centos nfs client  (0) 2019.02.27
svn on centos  (0) 2019.02.22
smb on centos  (0) 2019.02.13
centos backup  (0) 2019.02.13
Posted by 구차니
Linux/centos2019. 2. 22. 16:03

흐음.. git으로 변환해주어야 하려나? 고민중..


[링크 : https://blog.hanumoka.net/2018/04/30/centOs-20180430-centos-install-subversion/]

[링크 : https://www.lesstif.com/pages/viewpage.action?pageId=6979749]


+

저장소의 format 파일을 접근할 수 없다고 나오면 selinux를 설정해주어야 한다.

chcon -R -t svnserve_content_t /svn 

[링크 : http://jryeong.blogspot.com/2013/12/cenos-svn.html]

'Linux > centos' 카테고리의 다른 글

centos nfs client  (0) 2019.02.27
centos timezone 변경  (2) 2019.02.23
smb on centos  (0) 2019.02.13
centos backup  (0) 2019.02.13
centos epel 저장소 추가  (0) 2019.02.13
Posted by 구차니
Linux/centos2019. 2. 13. 19:08

오늘도 여전히(?) selinux가 날 잡는군 -_-


[링크 : https://wiki.centos.org/HowTos/SetUpSamba]

[링크 : https://www.lesstif.com/pages/viewpage.action?pageId=18219476]


firewall-cmd --permanent --zone=public --add-service=samba

firewall-cmd --reload 

[링크 : https://www.manualfactory.net/10439] 방화벽

[링크 : https://www.manualfactory.net/10153]

'Linux > centos' 카테고리의 다른 글

centos timezone 변경  (2) 2019.02.23
svn on centos  (0) 2019.02.22
centos backup  (0) 2019.02.13
centos epel 저장소 추가  (0) 2019.02.13
KVM spice 원격 접속시 No route to host  (0) 2019.01.28
Posted by 구차니
Linux/centos2019. 2. 13. 17:34

'Linux > centos' 카테고리의 다른 글

svn on centos  (0) 2019.02.22
smb on centos  (0) 2019.02.13
centos epel 저장소 추가  (0) 2019.02.13
KVM spice 원격 접속시 No route to host  (0) 2019.01.28
yum checkupdate  (0) 2019.01.25
Posted by 구차니
Linux/centos2019. 2. 13. 17:13

귀찮구먼...


-------------- For RHEL/CentOS 7 --------------

# wget dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm

# rpm -ihv epel-release-7-11.noarch.rpm  

[링크 : http://wget dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm]


+

2019.04.22

위에거는 복잡하니 아래것만 외우자? ㅋ

$ sudo yum -y install epel-release 

[링크 : http://cheapwindowsvps.com/blog/how-to-install-htop-on-centos-7/]

'Linux > centos' 카테고리의 다른 글

smb on centos  (0) 2019.02.13
centos backup  (0) 2019.02.13
KVM spice 원격 접속시 No route to host  (0) 2019.01.28
yum checkupdate  (0) 2019.01.25
centos 서비스 등록하기  (0) 2018.12.03
Posted by 구차니
Linux/centos2019. 1. 28. 16:19

firewalld 라는 망할(?) 새로운 데몬이 추가되어 얘를 죽여야 된다. -_-


요건 일단 서비스 죽이는 법

# systemctl stop firewalld 

[링크 : https://www.liquidweb.com/kb/how-to-stop-and-disable-firewalld-on-centos-7/]


firewalld에서 차단하는 목록을 확인하는 법을 찾아야겠다..

# firewall-cmd --list-all 

# firewall-cmd --add-port=21/tcp

# firewall-cmd --remove-port=21/tcp

[링크 : https://www.manualfactory.net/10153]


+

[링크 : https://www.lesstif.com/pages/viewpage.action?pageId=22053128]


'Linux > centos' 카테고리의 다른 글

centos backup  (0) 2019.02.13
centos epel 저장소 추가  (0) 2019.02.13
yum checkupdate  (0) 2019.01.25
centos 서비스 등록하기  (0) 2018.12.03
centos 서비스 자동시작  (0) 2018.11.16
Posted by 구차니
Linux/centos2019. 1. 25. 14:50

yum에는 익숙하지 않아서..

아무생각 없이 update 했더니 apt-get upgrade 하는 작동이 되어버려서 검색..


The check-update command will refresh the package index and check for available updates:


yum check-update 

[링크 : https://unix.stackexchange.com/questions/6252/what-is-yum-equivalent-of-apt-get-update]


yum update package_name

지정된 패키지를 사용 가능한 최신 버전으로 업데이트하는데 사용됩니다. 지정된 패키지가 없을 경우, yum은 설치된 모든 패키지를 업데이트하게 됩니다.

--obsoletes 옵션을 사용할 경우 (예: yum --obsoletes package_name), yum은 오래된 패키지를 처리하게 됩니다. 따라서, 오래된 패키지는 업데이트를 하는 동안 적절히 삭제 및 교체됩니다.


yum check-update

이 명령으로 업데이트가 설치된 패키지에 적용할 수 있는지에 대한 여부를 확인할 수 있습니다. 업데이트를 적용할 수 있을 경우 yum은 전체 리포지터리에서 모든 패키지 목록을 반환합니다. 

[링크 : https://access.redhat.com/...updating_packages_from_the_command_line_with_yum]

Posted by 구차니
Linux/centos2018. 12. 3. 17:13

_

2019.03.21

centos7 기준 아래 경로가 잘못되어 수정

# vi /usr/lib/systemd/system/servicename




# vi /usr/lib/systemd/service/servicename

[Unit]

Description = making network connection up

After = network.target


[Service]

ExecStart = /root/scripts/conup.sh


[Install]

WantedBy = multi-user.target


실제 서비스 등록

# chmod +x /root/scripts/conup.sh

# systemctl enable servicename  


[링크 : https://www.tecmint.com/create-new-service-units-in-systemd/]



+

node.js 경로줘서 실행하기


npm start --prefix path/to/your/app 


[링크 : https://stackoverflow.com/questions/36172442/how-to-npm-start-at-a-different-directory]


+

귀찮으니.. whereis로 찾아서

/bin/http-server 와(얘는 걍 스크립트)

/bin/node 를 만들어 주면 해결!(얘는 바이너리)

[링크 : http://leechwin.tistory.com/...usrbinenv-node-No-such-file-or-directory-에러가-발생하는-경우]



+

reload를 적용하려면 아래의 줄을 [service] 항목에 추가하면 되는 듯?

[Unit]

Description=The NGINX HTTP and reverse proxy server

After=syslog.target network.target remote-fs.target nss-lookup.target


[Service]

Type=forking

PIDFile=/run/nginx.pid

ExecStartPre=/usr/sbin/nginx -t

ExecStart=/usr/sbin/nginx

ExecReload=/bin/kill -s HUP $MAINPID

ExecStop=/bin/kill -s QUIT $MAINPID

PrivateTmp=true


[Install]

WantedBy=multi-user.target 


[링크 : https://www.shellhacks.com/systemd-service-file-example/]

Posted by 구차니