образовательная корпорация
Создать
Править
Отменить
Вверх

Различия

Здесь показаны различия между двумя версиями данной страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
to_wiki [2015/02/10 13:12]
root
to_wiki [2015/10/04 17:30] (текущий)
root
Строка 66: Строка 66:
  
            #yum list имя_пакета            #yum list имя_пакета
- 
- 
- 
- 
- 
-nginx repo 
- 
-http://​wiki.nginx.org/​Install 
- 
- 
-To add nginx yum repository, create a file named /​etc/​yum.repos.d/​nginx.repo and paste one of the configurations below: 
- 
-CentOS: 
- 
-[nginx] 
-name=nginx repo 
-baseurl=http://​nginx.org/​packages/​centos/​$releasever/​$basearch/​ 
-gpgcheck=0 
-enabled=1 
- 
-RHEL: 
- 
-[nginx] 
-name=nginx repo 
-baseurl=http://​nginx.org/​packages/​rhel/​$releasever/​$basearch/​ 
-gpgcheck=0 
-enabled=1 
- 
-Due to differences between how CentOS, RHEL, and Scientific Linux populate the $releasever variable, it is necessary to manually replace $releasever with either "​5"​ (for 5.x) or "​6"​ (for 6.x), depending upon your OS version. ​ 
- 
- 
- 
-yum install nginx 
- 
-service nginx status 
-service nginx start 
- 
- 
- 
- 
- 
  
  
Строка 115: Строка 74:
  
 ----------------- -----------------
- 
- 
--- 
-Переводим ssh на любимый порт 
- 
-/​etc/​ssh/​sshd_config 
- 
- 
- 
- 
- 
------ 
-Переименовываем машину 
- 
-/etc/host 
-127.0.0.1 имя 
-77,       ​имя 
- 
-/​etc/​sysconfig/​network 
- 
-HOSTNAME=имя 
- 
- 
- 
--- 
-reboot 
- 
-