To make sure you will get through this installation first get a developer license first. You need it during the installation of wowza. You can get as many and as often one. The license is valid for 180 days and you can use it for 1 upload stream and 10 viewers. For developing purposes this should be enough. When the 180 days are over, just replace it with a new one;).

  1. Make sure your ubuntu server is up to date. Run the 2 commands.

    2. Wowza is depending on Java, so we have to install it.

    3. Install Oracle JDK package

    4. Time to install wowza. Go to a tmp directory

    Download the latest version (in this case 4.7.1) you can replace it with the latest version (which you can find here:

    Make the file executable:

    Time to run the file and start the actual installation:

    5. Some questions will be asked. they all can be answered with Enter or yes.

    Get your license key on standby. You need it here:

    After this you have to create a username and password to your choice (words in capitals you should fill in yourself.

    Do you want to start wowza automaticly after a reboot?

    Setup is ready. Continue to install wowza with the settings you gave in above questions. Not sure? (type N to start from step 4 again).

    Time to get some coffee (it will take about a minute or 2)

    After this the setup is done

    You can now access your wowza streamingEngine Manager in your browser by typing your ipadress instead of the YOUR_SERVER_IP in the example below.

    Update sept 4, 2017:
    Go on the commandline again an check the java version:

    It will show something like this:

    When you go into the Enginemanager and to server > About
    You will most likely see a different (older) version. In my case it was: 1.8.0_77

    So Wowza is not using my latest java version on the server. Here is a fix for that:
    Go on the commandline again:

    This will remove the current java version and create a symlink to the latest version. After this restart the streamingengine and enginemanager. 

    Now login again in the Enginemanager and check the java version again. It should give you the same version as you have on the server. In my case: 1.8.0_144


출처 :

Posted by MoGuWai 모과이IT

[리눅스에서 삼바셋팅 일반적인방법]


위의 일반적인 셋팅 방법대로 해주어도 실제 윈도우에서 리눅스 공유 폴더로 접속을 하면

해당 리눅스 폴더의 권한과 파일권한을 다 주었는데도 파일 write와 modify가 되지 않았다. 


Centos는 레드햇 계열이라 "보안 강화 리눅스"(Security Enhanced linux) 즉 selinux 설정 해제를 해주어야지 실제로 write와 modify가 정상적으로 되어진다.

[해결 방법]

1. vi 를 통해 "/etc/selinux/config" 에 접속한다.

2. selinux 를 화면과 같이 disabled 하면 된다.

[root@ns1 log]# vi /etc/selinux/config

# This file controls the state of SELinux on the system.

# SELINUX= can take one of these three values:

# enforcing - SELinux security policy is enforced.

# permissive - SELinux prints warnings instead of enforcing.

# disabled - SELinux is fully disabled.


# SELINUXTYPE= type of policy in use. Possible values are:

# targeted - Only targeted network daemons are protected.

# strict - Full SELinux protection.


시스템 재부팅

기타 방법 ( 위 내용 추천)

1. 수동으로 끄기(일시적으로만 먹힘)


setenforce 0

2. 커널 명령행에 다음 옵션 추가. (grub.conf 등에)


3. 명령어(바로 적용)

켜기 : # setenforce 1 

끄기 : # setenforce 0



Posted by MoGuWai 모과이IT

[NodeJS 설치]

1. nodejs 다운로드 

에서 url 확인


2. 압축해제

 tar xf node-v6.10.2-linux-x64.tar.xz

3. 위치 이동

 mv ./node-v6.10.2-linux-x64 /usr/local/nodejs

4. Path 설정을 위해 profile 수정

 vi /etc/profile

맨아래에 추가

export NODE_HOME=/usr/local/nodejs

export PATH=$PATH:$NODE_HOME/bin

 source /etc/profile

5. 필요시 서버 재부팅 필요

 shutdown -r now

6. npm 업데이트

npm update -g npm

[테스트 소스]

const http = require('http');

http.createServer((request, response) => {

  return request

    .on('error', (err) => { // 요청에 에러가 있으면



    .on('data', (data) => { // 요청에 데이터가 있으면



    .on('end', () => { // 요청의 데이터가 모두 받아졌으면

      response.on('error', (err) => { // 응답에 에러가 있으면



      response.statusCode = 200; // 성공 상태 코드

       response.setHeader('Content-Type', 'text/plain'); // header 설정

      response.write('hi\n'); // body에 정보 탑재

      response.end('the end!'); // 정보 탑재 후 브라우저로 전송



[방화벽 8080 포트 열기]

1. /etc/sysconfig/iptables 파일 열기 & 수정

    [root@moguwai ~]# vi /etc/sysconfig/iptables

    열고자 하는 포트를 아래 라인과 같이 추가. (8080 포트 열기)

    -A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT

2. iptables restart - 아래 명령 사용.

    [root@moguwai ~]# service iptables restart


    [root@moguwai ~]# /etc/init.d/iptables restart

'개발지식창고 > NodeJS' 카테고리의 다른 글

Centos에 Nodejs 설치 및 테스트  (0) 2017.10.11
Posted by MoGuWai 모과이IT