분류없음2017.07.05 11:56


출처 : http://realforce111.tistory.com/37



리눅스에 SNMP를 설정하는 방법을 알아보겠습니다.



# yum list | grep snmp 

SNMP 패키지 리스트 리스트를 보여 줍니다.



# yum -y install net-snmp.x86_64
# yum -y install net-snmp-util.x86_64

net-snmp.x86_64, net-snmp-utils.x86_64 두 가지 파일을 설치 합니다.



# vi /etc/snmp/snmpd.conf


# First, map the community name "public" into a "security name"


# sec.name source community

com2sec notConfigUser default public

com2sec kimms 192.168.1.0/24 public     // SNMP 허용 아이피와 community name 입력

com2sec kimms default public


####

설치 완료 후 /etc/snmp/snmpd.conf 파일 수정



# groupName securityModel securityName 
group notConfigGroup v1 notConfigUser 
group notConfigGroup v2c notConfigUser 
group kimmsgroup v1 kimms      // 그룹 추가
group kimmsgroup v2c kimms 
group kimmsgroup usm kimms

####



# Finally, grant the group read-only access to the systemview view. 
# group context sec.model sec.level prefix read write notif 
# access notConfigGroup "" any noauth exact roview rwview none 
access kimmsgroup "" any noauth exact all all all


SNMP 서비스를 시작 합니다.


SNMP 서비스가 정상적으로 실행중인지 확인하기 위해 netstat 명령을 실행 합니다.



# snmpwalk -v 2c -c public localhost system
# snmpwalk -v -2c -c public 192.168.0.100 system     // snmpwalk-v 2c -c public "허용 IP" system

정상적으로 출력 된다면 해당 장비의 정보를 가져올 수 있습니다.



출처: http://realforce111.tistory.com/37 [realforce111님의 블로그]

신고
Posted by WebProgrammer 1010
02.Oracle2017.06.02 14:20

VARIABLE jobno number;

BEGIN

   DBMS_JOB.SUBMIT(

      :jobno, 

      'JOB_TRAFFIC_INFO();',

      SYSDATE,

      'TRUNC(SYSDATE+1)+7/24');

   COMMIT;

END;


신고
Posted by WebProgrammer 1010
분류없음2017.04.17 08:36

systemctl stop firewalld

 systemctl start firewalld


# firewall-cmd --permanent --zone=public --add-port=8080/tcp

# firewall-cmd --reload

신고
Posted by WebProgrammer 1010
분류없음2017.03.28 17:41

map.setCenterAndLevel(new nhn.api.map.LatLng(36.35041200438027,127.38454801772923),7);

신고
Posted by WebProgrammer 1010
hadoop2017.03.07 15:53

hadoop fs -copyToLocal /실제파일위치경로 /내려받을경로

신고
Posted by WebProgrammer 1010
분류없음2017.02.28 16:05

route add 10.0.0.0 mask 255.0.0.0 10.0.0.1 metric 1 -p

route add 0.0.0.0 mask 0.0.0.0 192.168.0.1 metric 2 -p

신고
Posted by WebProgrammer 1010
분류없음2017.02.24 10:38

How To Install Dokuwiki on CentOS 7

r00t November 21, 2015

install Dokuwiki on ubuntu 15.04

In this tutorial we will show you how to install and configuration of Dokuwiki on your CentOS 7 server. For those of you who didn’t know, DokuWiki is considered to be the most versatile open source Wiki software application which is proven to meet your demanding wiki needs. Using a very familiar interface, it allows you to easily scale and optimize using many advanced features. Utilizing files instead of a database, DokuWiki is extremely flexible with the type of system it will run on (no database server required).

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation Dokuwiki in CentOS 7 server.

Install Dokuwiki on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Install LAMP server.

A CentOS 7 LAMP server is required. If you do not have LAMP installed, you can follow our guide here. Also install required PHP modules:

Step 3. Installing Dokuwiki.

First thing to do is to go to DokuWiki’s download page and  download the latest stable version of Dokuwiki:

We will need to change some folders permissions:

Step 4. Configuring Apache web server for Dokuwiki.

It is time to configure Apache. Create a ‘/etc/httpd/conf.d/vhosts.conf’ file with the following content

Create a ‘/etc/httpd/vhosts.d’ directory where we will put all our virtual hosts:

Create a virtual host for our domain:

Add the following lines at the end of the file:

Save and close the file. Restart the apache service for the changes to take effects:

Step 5. Accessing DokuWiki.

DokuWiki will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com/install.php or http://server-ip/install.php and complete the required the steps to finish the installation. If you are using a firewall, please open port 80 to enable access to the control panel.

Congratulation’s! You have successfully installed Dokuwiki. Thanks for using this tutorial for installing Dokuwiki on your CentOS 7 system. For additional help or useful information, we recommend you to check the official Dokuwiki web site.


신고
Posted by WebProgrammer 1010
분류없음2017.02.21 10:32

local.php
$conf['target']['extern'] = '_blank';


신고
Posted by WebProgrammer 1010
분류없음2017.02.20 10:46

dokuwiki 한글 파일명 


한글파일명 다운 받을때 한글이 깨질경우


/lib/exe/fetch.php


$data = array(

        'media'         => $MEDIA,

        'file'          => $FILE,

        'orig'          => $MEDIA,

        'mime'          => $MIME,

        'download'      => $DL,

        'cache'         => $CACHE,

        'ext'           => $EXT,

        'width'         => $WIDTH,

        'height'        => $HEIGHT,

        'status'        => $STATUS,

        'statusmessage' => $STATUSMESSAGE,

        'ispublic'      => media_ispublic($MEDIA),

    );


수정

신고
Posted by WebProgrammer 1010
분류없음2017.01.04 15:13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html>
    <head>
        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vis/4.16.1/vis.min.js"></script>
        <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/vis/4.16.1/vis.min.css" />
        <style type="text/css">
          body {
              font: 10pt sans;
          }
          #network {
              width: 100%;
              height: 600px;
              background: white;
              border: 1px solid lightgray;
          }
      </style>
        <script type="text/javascript">
            function main() {
                var graph = {
                    nodes: new vis.DataSet([
                      {"id""0""label""Parent""level"0}, 
                      
                      {"id""0.1""label""Child""level"1},
                      {"id""0.2""label""Child""level"1},
                      
                      {"id""0.1.1""label""Grand Child""level"2},
                      {"id""0.2.1""label""Grand Child""level"2},
                      {"id""0.2.2""label""Grand Child""level"2},
                      {"id""0.2.3""label""Grand Child""level"2},
                      
                      {"id""0.2.2.1""label""Grand Grand Child""level"3},
                      {"id""0.2.2.2""label""Grand Grand Child""level"3},
                      {"id""0.2.2.3""label""Grand Grand Child""level"3}
                    ]),
                    edges: new vis.DataSet([
                      {"from""0""to""0.1"},
                      {"from""0""to""0.2"},
                      
                      {"from""0.1""to""0.1.1"},
                      
                      {"from""0.2""to""0.2.1"},
                      {"from""0.2""to""0.2.2"},
                      {"from""0.2""to""0.2.3"},
                      
                      {"from""0.2.2""to""0.2.2.1"},
                      {"from""0.2.2""to""0.2.2.2"},
                      {"from""0.2.2""to""0.2.2.3"},
                    ])
                };
                
                var options = {
                  nodes: {
                    borderWidth: 1,
                    borderWidthSelected: 1,
                    shape: "box",
                    color: {
                      border: 'lightgray',
                      background: 'white',
                      highlight: {
                        border: 'lightgray',
                        background: 'lightblue'
                      },
                      hover: {
                        border: 'lightgray',
                        background: 'lightblue'
                      }
                    }
                  },
                  edges: {
                    smooth: {
                      type: 'cubicBezier',
                      forceDirection: 'vertical',
                      roundness: 1
                    },
                    color: 'lightgray'
                  },
                  layout: {
                    hierarchical: {
                      direction: 'UD',
                      nodeSpacing: 150
                    }
                  },
                  interaction: {dragNodes :false},
                  physics:false
                  };
                var network = new vis.Network(document.getElementById("network"), graph, options);
            }
        </script>
    </head>
    <body onload="main();">
        <div id="network"></div>
    </body>
</html>
cs


신고
Posted by WebProgrammer 1010

티스토리 툴바