Last active
December 8, 2015 01:15
-
-
Save rurtubia/b17fce59f9060143b4cb to your computer and use it in GitHub Desktop.
Instalación de Servicios Web
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0. apagar selinux | |
1. yum install httpd | |
2. Configurar /etc/httpd/conf/httpd.conf | |
Listen 80 | |
Listen [IP]:80 | |
3. COnfigurar tabla host: /etc/hosts | |
IP fqdn shortname | |
(nombre de la máquina).localdomine (nombre de la máquina) | |
4. hostname -a (da el shortname) | |
5- hostname -f (da el fqdn) | |
6. service httpd start > De CentOS 7 en adelante se utiliza systemctl | |
6.1 service httpd status : nos muestra si está corriendo | |
7. Dejar atachado al inicio | |
chkconfig httpd on | |
firewall: desactivar selinux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Para ver qué archivos están configurados para empezar al inicio: | |
Los que dicen 5:on comenzarán al inicio. | |
Esto es similar a utilizar msconfig en Windows. | |
[root@urtubia html]# chkconfig --list | |
abrt-ccpp 0:off 1:off 2:off 3:on 4:off 5:on 6:off | |
abrtd 0:off 1:off 2:off 3:on 4:off 5:on 6:off | |
acpid 0:off 1:off 2:on 3:on 4:on 5:on 6:off | |
atd 0:off 1:off 2:off 3:on 4:on 5:on 6:off | |
auditd 0:off 1:off 2:on 3:on 4:on 5:on 6:off | |
autofs 0:off 1:off 2:off 3:on 4:on 5:on 6:off | |
blk-availability 0:off 1:on 2:on 3:on 4:on 5:on 6:off | |
certmonger 0:off 1:off 2:off 3:on 4:on 5:on 6:off | |
cpuspeed 0:off 1:on 2:on 3:on 4:on 5:on 6:off | |
crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off | |
cups 0:off 1:off 2:on 3:on 4:on 5:on 6:off | |
dovecot 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
haldaemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off | |
htcacheclean 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
ip6tables 0:off 1:off 2:on 3:on 4:on 5:on 6:off | |
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off | |
irqbalance 0:off 1:off 2:off 3:on 4:on 5:on 6:off | |
kdump 0:off 1:off 2:off 3:on 4:on 5:on 6:off | |
lvm2-monitor 0:off 1:on 2:on 3:on 4:on 5:on 6:off | |
mdmonitor 0:off 1:off 2:on 3:on 4:on 5:on 6:off | |
messagebus 0:off 1:off 2:on 3:on 4:on 5:on 6:off | |
mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off | |
netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
netfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off | |
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off | |
nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
nfslock 0:off 1:off 2:off 3:on 4:on 5:on 6:off | |
ntpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
ntpdate 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
oddjobd 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
portreserve 0:off 1:off 2:on 3:on 4:on 5:on 6:off | |
postfix 0:off 1:off 2:on 3:on 4:on 5:on 6:off | |
psacct 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
quota_nld 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
rdisc 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
restorecond 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
rngd 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
rpcbind 0:off 1:off 2:on 3:on 4:on 5:on 6:off | |
rpcgssd 0:off 1:off 2:off 3:on 4:on 5:on 6:off | |
rpcidmapd 0:off 1:off 2:off 3:on 4:on 5:on 6:off | |
rpcsvcgssd 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
rsyslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off | |
saslauthd 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
sblim-sfcb 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
smartd 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
snmpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
snmptrapd 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
spamassassin 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off | |
sssd 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
svnserve 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
sysstat 0:off 1:on 2:on 3:on 4:on 5:on 6:off | |
tog-pegasus 0:off 1:off 2:off 3:on 4:off 5:on 6:off | |
tomcat6 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
udev-post 0:off 1:on 2:on 3:on 4:on 5:on 6:off | |
vsftpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
winbind 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
xinetd 0:off 1:off 2:off 3:on 4:on 5:on 6:off | |
ypbind 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
xinetd based services: | |
amanda: off | |
chargen-dgram: off | |
chargen-stream: off | |
daytime-dgram: off | |
daytime-stream: off | |
discard-dgram: off | |
discard-stream: off | |
echo-dgram: off | |
echo-stream: off | |
rsync: off | |
tcpmux-server: off | |
time-dgram: off | |
time-stream: off | |
Para atachar un servicio al inicio | |
[root@urtubia html]# chkconfig httpd on | |
luego de ejecutar nuevamente | |
[root@urtubia html]# chkconfig --list | less | |
nos entrega: | |
httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Para editarla entrar a | |
vi /etc/hosts | |
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 | |
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 | |
Modificarlo y agregar la siguiente línea: | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment