반응형

Linux 438

mount error(112): Host is downRefer to the mount.cifs(8) manual page (e.g. man mount.cifs)

mount -t cifs //192.168.0.202/data/ /data/ -o user=guest,pass="1234567890" 위와 같이 에러가 발생을 한다 딱히 옵션을 잘못 입력하지 않은것 같은데...? 찾아보니 samba 버전이 낮아서 그렇다 리눅스 환경의 OS가 8버전에서는 문제가 없다 centos 7 smbd Version 4.10.16 centos 8 smbd Version 4.14.5 버전차이때문에 그런듯 centos 4.10 을 4.14 로 올리면 해결이 될것이다. 귀찮으니깐 그냥 samba 1.0 버전 지원하는걸로 추가 해주면 정상적으로 마운트가 된다.

Linux 2024.03.31

솔리라스 10 nis 설정 2024 버전

솔리라스 10 nis 설정 2024 버전 https://algo79.tistory.com/401 솔라리스 10 nis nfs 설정 centos나 redhat 도 설치가 가능하지만솔라리스에 설치하도록 하자.나는 10버전에 설치를 했다.(이미지는 알아서..) 네트워크는 설정을 하고혹시 IP를 변경을 한다면 hosts, /etc/hostname.네트워크명, /etc/ algo79.tistory.com 정말 오랜만에 nis 다시 구축을 해봤다. 위에 적어놓은 글중에 몇가지 오류가 있는것들이 있어서 다시 작성 # domainname test.domain.com; domainname >/etc/defaultdomain https://algo79.tistory.com/1702 솔라리스 네트워크 설정 방법 2(IP변경..

Linux 2024.03.21

firewall 방화벽 설정 방법

firewall 방화벽 설정 방법 방화벽 구동중인지 확인 방법 # systemctl status firewalld 방화벽 멈추기 # systemctl stop firewalld 방화벽 부팅시 자동실행 # chkconfig firewalld on 방화벽 부팅시 자동실행 안하기 # chkconfig firewalld off 방화벽 포트 상태 확인 # firewall-cmd --list-all 방화벽 포트 추가 하기 # firewall-cmd --permanent --add-port=161/tcp 방화벽 포트 삭제 하기 firewall-cmd --permanent --remove-port=161/tcp 포트 추가후 reload 해줘야 적용 된다. reload 방법 firewall-cmd --reload rel..

Linux 2024.03.04

솔라리스 네트워크 설정 방법 2(IP변경방법)

솔라리스 네트워크 설정 방법 2 https://algo79.tistory.com/19 솔라리스 10 네트워크 설정(IP셋팅) 1.8139랜카드 인스톨후 재부팅 2./etc/hostname.rtls0 이름 3./etc/hosts 사설아이피 이름 loghost 4./etc/defaultrouter 192.168.0.1 5./etc/nsswitch.conf dns 추가 6./etc/resolv.conf domain hananet.net 2개의nameserver IP 7.ifconfig rtls0 dow algo79.tistory.com 예전에 잘 모를때 그냥 네트워크 설정을 했는데.. 재부팅을 하면 IP가 지속적으로 리셋이 된다. 뭐지 하고 찾다 보니 원인을 찾았다. 솔라리스는 기본적으로 IP 를 자신이 가지..

Linux 2024.03.03

sudo 설정 관련 설정 방법

sudo 설정 관련 설정 방법 보통 리눅스 환경에서는 root 를 사용하지 말라고 한다.(보안강화를 위해) 그래서 보통 계정을 생성 후 사용을 한다 하지만 가끔 가다가 root 권한이 필요한 경우가 있다. 이럴경우 sudo 를 이용해서 권한을 부여 후 사용하면 된다. 예를 들어 mount 를 보면 일반 계정은 mount 나 umount 가 불가능하다. 이럴 경우 # vi /etc/sudoers 파일을 열어서 이렇게 된 부분을 계정 ALL=/sbin/mount 이렇게 입력을 해주고 test ALL=/sbin/mount 저장하고 나오면 정상적으로 mount, umount 가 작동 된다. test ALL=/sbin/mount, /sbin/shutdown, /usr/bin/yum 이렇게 여러가지 추가 할 수도 ..

Linux 2024.03.02

mail.alert] unable to qualify my own domain name (test) -- using short nameWARNING: local host name (test) is not qualified; see cf/README: WHO AM I?

mail.alert] unable to qualify my own domain name (test) -- using short name WARNING: local host name (test) is not qualified; see cf/README: WHO AM I? 솔라리스 nis 설치시 위와 같이 에러가 발생 한다면? domainname test.domain.com; domainname >/etc/defaultdomain 이렇게 도메인 설정을 해주고 hosts 에 등록을 안해주면 위와 같이 에러가 발생 한다. # vi /etc/hosts 에 변경 해주면 된다.

Linux 2024.02.26

vi 치환 substitute pattern match failed 에러 해결방법

vi 치환 substitute pattern match failed 에러 해결방법 보통 특수문자가 있을 경우 위와 같이 에러가 발생이 된다. 예를 들어 *LK*1234 이걸 HS4321 로 변경 한다면 보통 :%s/*LK*1234/HS4321/g 를 입력 했다면 substitute pattern match failed 에러가 나타난다. 그래서 특수문자로 해석 되는 곳을 \ 를 추가 해주면 된다. :%s/\*LK\*1234/HS4321/g 이러면 정상적으로 수정 된다.

Linux 2024.02.24

솔라리스10 make 설치 방법

솔라리스10 make 설치 방법 ㅎㅎㅎ 기본 버전을 설치 해서 그런가 make 가 없다;;; http://download.nust.na/pub3/solaris/sunfreeware/pub/unixpackages/x86/5.10/ Index of /pub3/solaris/sunfreeware/pub/unixpackages/x86/5.10 download.nust.na 다운 받아서 장비에 저장하고 # gunzip make-3.82-sol10-x86-local.gz 압축 풀고 # pkgadd -d make-3.82-sol10-x86-local 설치 설치 완료 되었다. 아직도 make 해도 위와 같이 에러 뜬다. 심볼링 링크로 작업해주자. ln -s /usr/local/bin/make /usr/bin/ 하지만 ..

Linux 2024.02.23

Makefile:67: *** Kernel header files not in any of the expected locations.Makefile:68: *** Install the appropriate kernel development package, e.g.Makefile:69: *** kernel-devel, for building kernel modules and try again. Stop.

# make Makefile:67: *** Kernel header files not in any of the expected locations. Makefile:68: *** Install the appropriate kernel development package, e.g. Makefile:69: *** kernel-devel, for building kernel modules and try again. Stop. # yum install kernel* 설치하고 나면 # make 정상 작동 된다.

Linux 2024.02.12

yum centos 6 removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt

# yum update Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Update Process Loading mirror speeds from cached hostfile YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/repo/arch combination/ removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt Error: Cannot find a valid baseurl for repo: base centos 6 ..

Linux 2024.02.11

Warning: Error fetching server time: Detected 51.34500002861023 seconds time difference between your browser and the server. Prometheus relies on accurate time and time drift might cause unexpected query results.

프로메테우스 rockey 환경에서 구동을 하면 위와 같이 경고가 발생 하는 경우가 있다. Warning: Error fetching server time: Detected 51.34500002861023 seconds time difference between your browser and the server. Prometheus relies on accurate time and time drift might cause unexpected query results. 말그대로 시간 동기화 문제가 있어서 그렇다. rockey 8.x 버전은 ntp 가 없다 시간 동기화 하려면 chrony 를 설치하고 작업을 해줘야 한다. # yum install chrony chrony 먼저 설치 해주고 # vi /etc/c..

Linux 2023.12.25

프로메테우스(Prometheus) 설치 rocky 8.9 환경

프로메테우스(Prometheus) 설치 rocky 8.9 환경 환경에서 작업을 했다. 우선 계정을 만들고 # useradd -m -s /bin/false prometheus 구성 데이터 폴더 만들고 # mkdir /data/prometheus 권한 설정 # chown prometheus /data/prometheus/ 이제 설치 파일 다운 https://github.com/prometheus/prometheus # wget https://github.com/prometheus/prometheus/releases/download/v2.48.1/prometheus-2.48.1.linux-amd64.tar.gz -P /tmp # cd /tmp/ tmp 가서 압축 풀고 # tar -xvf prometheus-2..

Linux 2023.12.24
728x90
반응형