Linux 490

centos usb 설치시 Unable to read package metadata. This may be due to a missing repodata directory. Please ensure that your install tree has been correctly generated.

centos 6.5 usb 로 설치하는데 에러가 뜬다.Unable to read package metadata. This may be due to a missing repodata directory. Please ensure that your install tree has been correctly generated.Failure: repodata/6e147c9aea5bf4c0f1ba7ecf759ddd3a259003a7f12a5a74398c9f05d672573d-primary.sqlite.bz2 from anaconda-CentOS-201410241409.x86_64: [Errno 256] No more mirrors to try. http://pcservis.flimel.eu/error-with-ins..

Linux 2016.03.24

솔라리스 10 nis nfs 설정

centos나 redhat 도 설치가 가능하지만솔라리스에 설치하도록 하자.나는 10버전에 설치를 했다.(이미지는 알아서..) 네트워크는 설정을 하고혹시 IP를 변경을 한다면 hosts, /etc/hostname.네트워크명, /etc/netmask 수정을 해야 한다.그리고 네트워크 재시작# svcadm restart network --NIS 설정# vi /etc/defaultdomaintest.domain.comor domainname test.domain.com; domainname >/etc/defaultdomain # touch ethers# touch netgroup# touch bootparams# ln -s TIMEZONE timezone # cd /var/yp# ypinit -myyy누르면 숄..

Linux 2016.02.24

mysql 로그 삭제

어느날 갑자기 / 에 데이터가 풀로 차있다 Filesystem 1K-blocks Used Available Use% Mounted on/dev/sda2 50395844 50658680 0 100% /tmpfs 16448976 72 16448904 1% /dev/shm/dev/sda1 126931 35036 85342 30% /boot/dev/sda5 2064208 68904 1890448 4% /tmp/dev/sda4 4128448 139256 3779480 4% /user 데이터가 어디서 이렇게 사용하고 있나 확인해보니 /var/lib/mysql/mysqsl-bin.~~~파일들이 용량을 다 잡아 먹고 있다. mysql 분석할때 확인 하는 로그 파일들이니 오래된건 삭제를 하자 mysql -u root -..

Linux 2016.02.02

java 설정 보기

java 구동하면서 메모리 환경 설정이 어떻게 되어 있나 확인 해보기이다. 우선 pid 값을 먼저 알아야 한다.# ps -ef | grep javaps -ef | grep javaroot 2339 1 99 Jan03 ? 확인 하던가# jps2339 ~~~~~ pid값을 확인했으면 # jmap -heap 2339Attaching to process ID 2339, please wait...Debugger attached successfully.Server compiler detected.JVM version is using thread-local object allocation.Parallel GC with 8 thread(s) Heap Configuration: MinHeapFreeRatio = 40 M..

Linux 2016.01.04

cacti backup & restore & upgrade

cacti backup특별한건 없다 디렉토리와 mysql만 백업하면 된다. mysql backup# mysqldump root -u cacti > cacti.mysql 폴더백업# tar -cvzf /backup/cacti_home.tgz /usr/share/cacti (cacti 설치디렉토리) 끝!~ restore 반대로 해주면 된다.mysql restore# mysql -u root -p cacti < cacti.mysql 폴더압출풀기# tar -xvf /backup/cacti_home.tgz 아파치 설정 ~ upgradedb백업은 별도로 할필요가 없지만 혹시 모르니 db백업을 하자 기존 cacti 설치 폴더를 old 폴더로 변경하자# mv cacti cacti_old 최신 버전을 다운 받아서 적당한 ..

Linux 2015.10.23
728x90
반응형