1c2e8286dc46c1ef940f481c905fad3abb54ca2a
howto/dhcp.rst
... | ... | @@ -57,25 +57,25 @@ Estos comandos son para revisar configuraciones y ver información de logs. |
57 | 57 | |
58 | 58 | Verificar la dirección de nuestras interfaces de red. |
59 | 59 | |
60 | -.. code-block:: sh |
|
60 | +.. code:: sh |
|
61 | 61 | |
62 | 62 | ip address |
63 | 63 | |
64 | 64 | Activar la interfaz de red eth1. |
65 | 65 | |
66 | -.. code-block:: sh |
|
66 | +.. code:: sh |
|
67 | 67 | |
68 | 68 | ip link set dev eth1 up |
69 | 69 | |
70 | 70 | Desactivar la interfaz de red eth1. |
71 | 71 | |
72 | -.. code-block:: sh |
|
72 | +.. code:: sh |
|
73 | 73 | |
74 | 74 | ip link set dev eth1 down |
75 | 75 | |
76 | 76 | Revisar el estado constante de la aplicación. |
77 | 77 | |
78 | -.. code-block:: sh |
|
78 | +.. code:: sh |
|
79 | 79 | |
80 | 80 | journalctl -u dhcpd |
81 | 81 |
howto/lemp.rst
... | ... | @@ -14,7 +14,7 @@ aleatoriamente y de 30 caracteres. |
14 | 14 | Prerrequisitos |
15 | 15 | ============== |
16 | 16 | |
17 | -.. code-block:: sh |
|
17 | +.. code:: sh |
|
18 | 18 | |
19 | 19 | # instalar repositorio necesario |
20 | 20 | yum -y install epel-release |
... | ... | @@ -36,7 +36,7 @@ Prerrequisitos |
36 | 36 | NginX |
37 | 37 | ===== |
38 | 38 | |
39 | -.. code-block:: sh |
|
39 | +.. code:: sh |
|
40 | 40 | |
41 | 41 | # editar fastcgi_params |
42 | 42 | cat << 'EOF' > /etc/nginx/fastcgi_params |
... | ... | @@ -155,7 +155,7 @@ En el caso de PHP, es necesario solamente incluir el archivo ``include.d/php.con |
155 | 155 | MariaDB |
156 | 156 | ======= |
157 | 157 | |
158 | -.. code-block:: sh |
|
158 | +.. code:: sh |
|
159 | 159 | |
160 | 160 | # generar password para mysql |
161 | 161 | password=$( apg -M CLN -m 30 -n 1 ) |
... | ... | @@ -214,7 +214,7 @@ MariaDB |
214 | 214 | PHP-FPM |
215 | 215 | ======= |
216 | 216 | |
217 | -.. code-block:: sh |
|
217 | +.. code:: sh |
|
218 | 218 | |
219 | 219 | # configurar PHP-FPM para usar sockets |
220 | 220 | sed -ri 's@^listen =.*$@listen = /run/php-fpm/php-fpm.sock@' /etc/php-fpm.d/www.conf |
... | ... | @@ -231,7 +231,7 @@ PHP-FPM |
231 | 231 | Servicios |
232 | 232 | ========= |
233 | 233 | |
234 | -.. code-block:: sh |
|
234 | +.. code:: sh |
|
235 | 235 | |
236 | 236 | # reiniciar servicios |
237 | 237 | systemctl restart nginx.service mariadb.service php-fpm.service |
... | ... | @@ -240,7 +240,7 @@ Servicios |
240 | 240 | Seguridad |
241 | 241 | ========= |
242 | 242 | |
243 | -.. code-block:: sh |
|
243 | +.. code:: sh |
|
244 | 244 | |
245 | 245 | # abrir puertos de firewall para nginx |
246 | 246 | firewall-cmd --set-default-zone=public |