Vous êtes sur la page 1sur 4

################################################################################

ssh wowza:
root
hayex
################################################################################
Comandos para Centos 7:

Para parar, iniciar, reiniciar, conocer el estado y recargar:

systemctl <evento> <servicio>


Ej:
systemctl restart httpd
systemctl enable <servicio>
systemctl disable <servicio>

[root@localhostcentos ~]# systemctl stop firewalld


################################################################################
Para crear carpeta:

mkdir -p /etc/vsl/install
################################################################################
Acceder a la ruta deseada:

cd

cd.. regresar
################################################################################
Ver la lista de archivos:

ls
################################################################################
Instalar el Telnet:

yum install telnet telnet-server -y

vi /etc/xinetd.d/telnet
################################################################################
Para descargar un http en Linux

Modo de empleo: wget [OPCI�N]... [URL]...

################################################################################
Ver las configuraciones de Red:

cd /etc/sysconfig/network-scripts/ y luego:vi ifcfg-enp0s3

vi /etc/sysconfig/network-scripts/ifcfg-enp0s3

[root@localhostcentos ~]# cd /etc/sysconfig/network-scripts/


[root@localhostcentos network-scripts]# vi ifcfg-enp0s3
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp0s3
UUID=f27c78f2-551b-438f-803a-d316267951d7
DEVICE=enp0s3
ONBOOT=yes
IPADDR=192.168.1.103
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=8.8.8.8
DNS2=4.4.4.4
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_PRIVACY=no
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
[root@localhostcentos network-scripts]#

:wq guardar y salir


:q! salir

Reiniciar el servicio:

service network restart

################################################################################
Ver los puertos TCP abiertos locales, ejecutar:

[root@localhost ~]# nmap -sT -O localhost

Starting Nmap 6.40 ( http://nmap.org ) at 2016-12-21 00:30 PET


RTTVAR has grown to over 2.3 seconds, decreasing to 2.0
RTTVAR has grown to over 2.3 seconds, decreasing to 2.0
RTTVAR has grown to over 2.3 seconds, decreasing to 2.0
RTTVAR has grown to over 2.3 seconds, decreasing to 2.0
RTTVAR has grown to over 2.3 seconds, decreasing to 2.0
RTTVAR has grown to over 2.3 seconds, decreasing to 2.0
RTTVAR has grown to over 2.3 seconds, decreasing to 2.0
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00015s latency).
Other addresses for localhost (not scanned): 127.0.0.1
Not shown: 992 closed ports
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
111/tcp open rpcbind
1935/tcp open rtmp
8083/tcp open us-srv
8086/tcp open d-s-n
8087/tcp open simplifymedia
8088/tcp open radan-http
Device type: general purpose
Running: Linux 3.X
OS CPE: cpe:/o:linux:linux_kernel:3
OS details: Linux 3.7 - 3.9
Network Distance: 0 hops

OS detection performed. Please report any incorrect results at


http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 1.62 seconds
[root@localhost ~]#
################################################################################
Para desabilitar el Firewall y ver el estado:

[root@localhost ~]# systemctl stop firewalld


[root@localhost ~]# iptables -L -n -v
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)


pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)


pkts bytes target prot opt in out source destination

[root@localhost ~]#
################################################################################
Iniciar el servidor wowza:

sudo service WowzaStreamingEngine start


sudo service WowzaStreamingEngineManager start
################################################################################
Verificar wowza e iniciar en una WEB:

http://192.168.1.143:1935

http://192.168.1.143:8088/enginemanager
usuario: hayex
pass: hayex

Source User Name:

hayexx
hayexx
################################################################################
Para pasar un archivo al Centos:

instalas el filezilla:
yum -y install epel-release
yum -y install filezilla
################################################################################
comando para obtener la IP en CentOS 7:

[root@localhostcentos ~]# ip -d addr


1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 promiscuity 0
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP
qlen 1000
link/ether 08:00:27:00:a1:f8 brd ff:ff:ff:ff:ff:ff promiscuity 0
inet 192.168.1.103/24 brd 192.168.1.255 scope global enp0s3
valid_lft forever preferred_lft forever
inet6 fe80::6a2e:673f:701a:58ab/64 scope link
valid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
qlen 1000
link/ether 52:54:00:c8:b0:e9 brd ff:ff:ff:ff:ff:ff promiscuity 0
bridge forward_delay 200 hello_time 200 max_age 2000
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
valid_lft forever preferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state
DOWN qlen 1000
link/ether 52:54:00:c8:b0:e9 brd ff:ff:ff:ff:ff:ff promiscuity 1
tun
bridge_slave
[root@localhostcentos ~]#

################################################################################
Ubicaci�n de wowza en el server Centos

[root@localhostcentos /]# cd /usr/local/WowzaStreamingEngine-4.6.0/


[root@localhostcentos WowzaStreamingEngine-4.6.0]#

################################################################################
Source Authentication server wowza:
hayex
hayexx