CentOS(리눅스)를 운영중인 장비에 하드디스크 등 저장장치를 추가 하면 디스크를 이용하기 위해서 다음과 같은 작업을 해줘야 합니다. 디스크 설치 후 fdisk –l 을 이용해서 디스크 정보를 확인합니다. 새로 설치된 디스크는 파티션 정보가 없습니다. 디스크 정보를 확인 했으면 fdisk 를 실행 합니다. fdisk (예 : fdisk /dev/sdb) fdisk 메뉴를 확인하고 싶으시면 m을 입력하시면 됩니다. p를 입력해서 파티션 정보를 확인합니다. 파티션이 없는 것을 확인 할 수 있습니다. n 을 입력하면 파티션을 새롭게 만들 수 있습니다. n을 누르면 두개의 메뉴가 나옵니다. e(extended) 확장 파티션과, p(primary partition) 주파티션을 선택 할 수 있습니다. 주로 사용하..
While trying to run a yum update I received the below warning message: Setting up Install Process Resolving Dependencies There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them. --> Running transaction check To resolve this yum-complete-transaction is required to complete the unfinished transactions. yum-complete-transaction is a prog..
Just discovered how super simple it was to add some gz compression when for example providing JSON data from PHP. All you need is regular output buffering with the ob_gzhandler as output callback. // Fetch some data $data = get_data(); // Turn on output buffering with the gzhandler ob_start('ob_gzhandler'); // Output as normal echo json_encode($data); The cool thing is that it actually looks at ..