'Linux'에 해당되는 글 76건

  1. 2014/01/14 visualp vsftp 업로드 속도 설정
  2. 2013/12/30 visualp time.bora.net , crontab을 이용한 업데이트
  3. 2013/12/05 visualp DNS관리하기
  4. 2013/10/01 visualp hadoop방화벽 설정
  5. 2013/10/01 visualp linux port 열고 닫기
  6. 2013/09/04 visualp 아파치 한글 파일 설정,apache, korean file type setting
  7. 2013/02/01 visualp Apache - WEB-INF 접근 금지
  8. 2013/01/03 visualp linux svn 설치
  9. 2012/12/24 visualp centos 6.3 설치 방법
  10. 2012/11/27 visualp Apache Memory keep increasing due to Rotate logs (with so many Vitural hosts)
common.lib.php  파일의  2788번째 줄의 소스를 아래와 같이 아이피로 수정 한다.

// 아이코드 사용자정보
function get_icode_userinfo($id, $pass)
{
    //$res = get_sock('http://www.icodekorea.com/res/userinfo.php?userid='.$id.'&userpw='.$pass);
    $res = get_sock('http://211.172.232.124/res/userinfo.php?userid='.$id.'&userpw='.$pass);
    $res = explode(';', $res);
    $userinfo = array(
        'code'      => $res[0], // 결과코드
        'coin'      => $res[1], // 고객 잔액 (충전제만 해당)
        'gpay'      => $res[2], // 고객의 건수 별 차감액 표시 (충전제만 해당)
        'payment'   => $res[3]  // 요금제 표시, A:충전제, C:정액제
    );

    return $userinfo;
}
2015/01/12 16:39 2015/01/12 16:39
받은 트랙백이 없고, 댓글 하나가 달렸습니다.

댓글+트랙백 RSS :: http://blog.visualp.com/rss/response/664

댓글+트랙백 ATOM :: http://blog.visualp.com/atom/response/664

명령어
1. service httpd stop
(아파치 80포트 사용 여부 확인)

2. apachectl startssl
(비밀번호 입력);
2014/12/08 17:18 2014/12/08 17:18
받은 트랙백이 없고, 댓글이 없습니다.

댓글+트랙백 RSS :: http://blog.visualp.com/rss/response/656

댓글+트랙백 ATOM :: http://blog.visualp.com/atom/response/656

apache에서 mp4 스트리밍하기

Linux RSS Icon ATOM Icon 2014/03/18 00:50 visualp
##### APM 컴파일 설치시 ##### cd /usr/local/src wget http://h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz tar -zxvf apache_mod_h264_streaming-2.2.7.tar.gz cd mod_h264_streaming-2.2.7 ./configure --with-apxs='/usr/local/apache/bin/apxs' make make install # so파일 있는지 확인 ll /usr/local/apache/modules/mod_h264_streaming.so # httpd.conf 파일 수정 # LoadModule h264_streaming_module modules/mod_h264_streaming.so AddHandler h264-streaming.extensions .mp4 ##### APM rpm 설치시 ##### cd /usr/local/src wget http://h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz tar -zxvf apache_mod_h264_streaming-2.2.7.tar.gz cd mod_h264_streaming-2.2.7 find / -name "*apxs*" ./configure --with-apxs='/usr/sbin/apxs' make make install # so파일 있는지 확인 ll /etc/httpd/modules/mod_h264_streaming.so # httpd.conf 파일 수정 # LoadModule h264_streaming_module modules/mod_h264_streaming.so AddHandler h264-streaming.extensions .mp4
2014/03/18 00:50 2014/03/18 00:50
받은 트랙백이 없고, 댓글이 없습니다.

댓글+트랙백 RSS :: http://blog.visualp.com/rss/response/647

댓글+트랙백 ATOM :: http://blog.visualp.com/atom/response/647

[원문]: http://sudarmuthu.com/blog/rotating-apache-log-files-using-cronolog/ - 파일 다운로드 체크 - [참고] : https://github.com/jamiew/apache-file-download-stats Rotating Apache log files using Cronolog Published Mar 9, 2008 | In Unix/Server Stuff I must confess that I am a stats freak. If you are a long time reader of my blog, then you would have known that by now yourself. ;-) This explains the reason why I want to preserve my Apache log files in spite of using a variety of stat services like Google Analytics, WordPress stats, statscounter, performancing metrics (before it was closed). The default Apache configuration preserves the log files only for the last 10 days, but I wanted to permanently archive this files. After some searches in Google I came across an excellent program called Cronolog. Cronolog is a simple filter program which writes each log entry to a separate log file named after the filename format specified. You can use a variety of parameters like current date, time etc to define the filename template. First we have to install cronolog, either by using aptitude or by downloading it from its download page. Then you have to change the log file name path in the virtual host file. (In Ubuntu Gusty, the virtual host files are situated in the path /etc/apache2/sites-enabled). I am using the following file format for this blog # Custom log file locations LogLevel warn ErrorLog "|/usr/sbin/cronolog /path/to/logs/%Y/%m/%Y-%m-%d-sudarmuthu.com-error.log" CustomLog "|/usr/sbin/cronolog /path/to/logs/%Y/%m/%Y-%m-%d-sudarmuthu.com-access.log" combined which will store my log files in separate folders for each year and for each month, like the below hierarchy /2007/12/2007-11-01-sudarmuthu.com-access.log /2007/12/2007-11-02-sudarmuthu.com-access.log ...... /2008/01/2008-01-01-sudarmuthu.com-access.log /2008/01/2008-01-02-sudarmuthu.com-access.log ...... You can use a variety of modifiers for the filename and I have documented some of them in the below table. You can get more information from its documentation. Specifier Description Time fields %H hour (00..23) %I hour (01..12) %p the locale’s AM or PM indicator %M minute (00..59) %S second (00..61, which allows for leap seconds) %X the locale’s time representation (e.g.: “15:12:47″) %Z time zone (e.g. GMT), or nothing if the time zone cannot be determined Date fields %a the locale’s abbreviated weekday name (e.g.: Sun..Sat) %A the locale’s full weekday name (e.g.: Sunday .. Saturday) %b the locale’s abbreviated month name (e.g.: Jan .. Dec) %B the locale’s full month name, (e.g.: January .. December) %c the locale’s date and time (e.g.: "Sun Dec 15 14:12:47 GMT 1996") %d day of month (01 .. 31) %j day of year (001 .. 366) %m month (01 .. 12) %U week of the year with Sunday as first day of week (00..53, where week 1 is the week containing the first Sunday of the year) %W week of the year with Monday as first day of week (00..53, where week 1 is the week containing the first Monday of the year) %w day of week (0 .. 6, where 0 corresponds to Sunday) %x locale’s date representation (e.g. today in Britain: “15/12/96″) %y year without the century (00 .. 99) %Y year with the century (1970 .. 2038)
2014/03/18 00:39 2014/03/18 00:39
받은 트랙백이 없고, 댓글이 없습니다.

댓글+트랙백 RSS :: http://blog.visualp.com/rss/response/646

댓글+트랙백 ATOM :: http://blog.visualp.com/atom/response/646

yum clean metadata
yum clean all


yum update 하다 보면 다음 과같은 에러가 발생 한다.

아래와 같은 애러 발생시 위 처럼 yum clean 을 해준다 .

클린후 yum update를 하면 정상 동작 한다.

Error Downloading Packages:
  nss-sysinit-3.15.3-6.0.1.el6_5.x86_64: Insufficient space in download directory /var/cache/yum/x86_64/6Server/public_ol6_latest/packages
    * free   0
    * needed 40 k
  nss-tools-3.15.3-6.0.1.el6_5.x86_64: Insufficient space in download directory /var/cache/yum/x86_64/6Server/public_ol6_latest/packages
    * free   0
    * needed 358 k
  kernel-uek-doc-3.8.13-26.1.1.el6uek.noarch: Insufficient space in download directory /var/cache/yum/x86_64/6Server/public_ol6_UEKR3_latest/packages
    * free   0
    * needed 11 M
  kernel-uek-firmware-3.8.13-26.1.1.el6uek.noarch: Insufficient space in download directory /var/cache/yum/x86_64/6Server/public_ol6_UEKR3_latest/packages
    * free   0
    * needed 1.7 M
  nss-3.15.3-6.0.1.el6_5.x86_64: Insufficient space in download directory /var/cache/yum/x86_64/6Server/public_ol6_latest/packages
    * free   0
    * needed 822 k
  2:postfix-2.6.6-6.el6_5.x86_64: Insufficient space in download directory /var/cache/yum/x86_64/6Server/public_ol6_latest/packages
    * free   0
    * needed 2.0 M
  kernel-2.6.32-431.5.1.el6.x86_64: Insufficient space in download directory /var/cache/yum/x86_64/6Server/public_ol6_latest/packages
    * free   0
    * needed 28 M
  kernel-firmware-2.6.32-43


2014/02/24 14:01 2014/02/24 14:01
받은 트랙백이 없고, 댓글이 없습니다.

댓글+트랙백 RSS :: http://blog.visualp.com/rss/response/645

댓글+트랙백 ATOM :: http://blog.visualp.com/atom/response/645

[원문]http://blog.beany.co.kr/archives/2157

작업환경

  • CentOS

System 설정

아래의 명령을 실행하여 sysctl.conf 파일을 편집합니다.

1
vi /etc/sysctl.conf

아래와 같이 net.ipv4.ip_forward 값을 1 로 변경합니다. 재부팅시에 적용이 됩니다.

1
net.ipv4.ip_forward = 1

아래의 명령을 이용하여 직접 Kernel 변수를 수정할 수 있습니다.

1
echo 1 > /proc/sys/net/ipv4/ip_forward

iptables 설정

MASQUERADE 설정

1
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Network Interface (eth0) 을 통한 Port Forwarding

1
iptables -t nat -A PREROUTING -p tcp -i eth0 --dport ${port} -j DNAT --to ${IP:Port}

특정 IP 를 통한 Port Forwarding

1
iptables -t nat -A PREROUTING -p tcp -d ${IP} --dport ${Port} -j DNAT --to-destination ${IP:Port}

Local Port Forwarding

1
iptables -t nat -A PREROUTING -p tcp -d ${IP} --dport ${Port} -j REDIRECT --to-port ${Port}
2014/01/24 17:34 2014/01/24 17:34
받은 트랙백이 없고, 댓글이 없습니다.

댓글+트랙백 RSS :: http://blog.visualp.com/rss/response/635

댓글+트랙백 ATOM :: http://blog.visualp.com/atom/response/635

[원문] : http://vitkalovav.blogspot.kr/2013/07/prvf-0002-could-not-retrieve-local.html


PRVF-0002 : Could not retrieve local nodename

Issue:

While Oracle 12c Installation on Linux (my case OEL6 update 4) you could get an error.

Solution 1:

1. check hostname:
cat /etc/sysconfig/network | grep HOSTNAME
HOSTNAME = test.localdomain

2. check hosts:
cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6


3. change /etc/hosts like:
127.0.0.1 test test.localdomain
::1 test test.localdomain


4. Run installer

Solution 2:

1. setup system variable like

$ ORACLE_HOSTNAME=test.localdomain
$ export ORACLE_HOSTNAME
2014/01/24 10:23 2014/01/24 10:23
받은 트랙백이 없고, 댓글이 없습니다.

댓글+트랙백 RSS :: http://blog.visualp.com/rss/response/633

댓글+트랙백 ATOM :: http://blog.visualp.com/atom/response/633

vncserver - port  : 5901
방화벽에서 5901포트를 개방 한다.

1. login as root
2. yum install vnc
3. yum install vnc-server
4. insert "vncserver" in command line
5. yum install tigervnc-server (의존성 때문에 2~4) 과정에서 설치가 됨.

구동 명령어
 - service vncserver restart
 - service vncserver start
 - service vncserver stop

if i execute  "service vncserver restart" then
  "nc server no displays configured" in command line

resoluction
vi /etc/sysconfig/vncservers

insert to endline this
VNCSERVERS="1:root"

good luck!!

2014/01/21 19:09 2014/01/21 19:09
받은 트랙백이 없고, 댓글이 없습니다.

댓글+트랙백 RSS :: http://blog.visualp.com/rss/response/629

댓글+트랙백 ATOM :: http://blog.visualp.com/atom/response/629

vsftp 업로드 속도 설정

Linux RSS Icon ATOM Icon 2014/01/14 20:47 visualp
/etc/vsftpd/vsftpd.conf 설정파일에 아래 내용을 추가하면 됩니다. anon_max_rate=0 - 익명 무제한 설정 시(0으로 설정 시 무제한) local_max_rate=-0 - 사용자 무제한 설정 시(0으로 설정 시 무제한) 5000000 < -- 5M 설정 후 vsftpd 재시작 #service vsftpd restart 또는 #/etc/init.d/vsftpd restart
2014/01/14 20:47 2014/01/14 20:47
받은 트랙백이 없고, 댓글이 없습니다.

댓글+트랙백 RSS :: http://blog.visualp.com/rss/response/628

댓글+트랙백 ATOM :: http://blog.visualp.com/atom/response/628

[원본] http://www.imcore.net/linux-crontab-auto-time-synchronization-%EC%9E%90%EB%8F%99-%EC%8B%9C%EA%B0%84-%EB%8F%99%EA%B8%B0%ED%99%94/
 
root 권한을 권장합니다.
# crontab 추가(5분마다 실행)
crontab -e [엔터]
*/5 * * * * rdate -s time.bora.net && /sbin/clock -w
[저장후 빠져나가기]
# crontab 확인
crontab -l
# crontab 서비스 재시작
service crond restart
2013/12/30 16:42 2013/12/30 16:42
받은 트랙백이 없고, 댓글이 없습니다.

댓글+트랙백 RSS :: http://blog.visualp.com/rss/response/626

댓글+트랙백 ATOM :: http://blog.visualp.com/atom/response/626