Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Language specific forums Russian (Русский) Веб сервер
  • Search

Nginx смена ip

Вопросы по работе Веб сервера
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
Lancaster
Posts: 43
Joined: Sun May 18, 2014 11:24 am

Nginx смена ip
  • Quote

Post by Lancaster » Tue May 23, 2017 12:22 pm

Друзья где нужно прописать новый ip, что бы пропала ошибка?
SpoilerShow
2017/05/23 14:22:57 [emerg] 13267#13267: bind() to 192.168.121.123:80 failed (99: Cannot assign requested address)
2017/05/23 14:28:18 [emerg] 14120#14120: bind() to 192.168.121.123:80 failed (99: Cannot assign requested address)
2017/05/23 14:28:18 [emerg] 14136#14136: bind() to 192.168.121.123:80 failed (99: Cannot assign requested address)
2017/05/23 14:28:18 [emerg] 14144#14144: bind() to 192.168.121.123:80 failed (99: Cannot assign requested address)
2017/05/23 14:28:44 [emerg] 15208#15208: bind() to 192.168.121.123:80 failed (99: Cannot assign requested address)
2017/05/23 14:28:44 [emerg] 15225#15225: bind() to 192.168.121.123:80 failed (99: Cannot assign requested address)
2017/05/23 14:28:44 [emerg] 15233#15233: bind() to 192.168.121.123:80 failed (99: Cannot assign requested address)
2017/05/23 14:29:19 [emerg] 16446#16446: bind() to 192.168.121.123:80 failed (99: Cannot assign requested address)
2017/05/23 14:29:19 [emerg] 16463#16463: bind() to 192.168.121.123:80 failed (99: Cannot assign requested address)
2017/05/23 14:29:19 [emerg] 16471#16471: bind() to 192.168.121.123:80 failed (99: Cannot assign requested address)
2017/05/23 14:30:00 [emerg] 17735#17735: bind() to 192.168.121.123:80 failed (99: Cannot assign requested address)
2017/05/23 14:30:40 [emerg] 19968#19968: bind() to 192.168.121.123:80 failed (99: Cannot assign requested address)
2017/05/23 14:34:19 [emerg] 21881#21881: bind() to 192.168.121.123:80 failed (99: Cannot assign requested address)
2017/05/23 15:05:18 [emerg] 28843#28843: bind() to 192.168.121.123:80 failed (99: Cannot assign requested address)
2017/05/23 15:07:07 [emerg] 29140#29140: bind() to 192.168.121.123:80 failed (99: Cannot assign requested address)
Top

yariksat
Posts: 551
Joined: Sat Nov 19, 2016 5:39 pm

Os: CentOS 4x
Web: apache
Re: Nginx смена ip
  • Quote

Post by yariksat » Tue May 23, 2017 4:30 pm

/home/admin/conf/web в nginx.conf или в snginx.conf в зависимости от протокола - там что?
Top

Petr
Posts: 19
Joined: Tue Feb 03, 2015 8:48 pm
Contact:
Contact Petr
Website

Re: Nginx смена ip
  • Quote

Post by Petr » Sat May 27, 2017 8:20 pm

Для конфигов виртхостов у юзеров:

Code: Select all

/bin/grep 'старый_ip' -P -R -I -l  /home/*/conf/web/* | /usr/bin/xargs /bin/sed -i 's/старый_ip/новый_ip/g'
Аналогично для основных конфигов nginx

Code: Select all

/bin/grep 'старый_ip' -P -R -I -l  /etc/nginx/* | /usr/bin/xargs /bin/sed -i 's/старый_ip/новый_ip/g'
Top

Petr
Posts: 19
Joined: Tue Feb 03, 2015 8:48 pm
Contact:
Contact Petr
Website

Re: Nginx смена ip
  • Quote

Post by Petr » Sat May 27, 2017 8:26 pm

Забыл. И тоже проделать для /etc/nginx/conf.d/ нужно.)
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Веб сервер”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password