update
This commit is contained in:
parent
b16263432b
commit
247322b2fd
|
|
@ -308,10 +308,13 @@ http {
|
|||
exec("$nginx -t 2>&1", $output, $status);
|
||||
if ($status === 0) {
|
||||
exec("sudo systemctl restart nginx 2>&1", $o, $s);
|
||||
exec('sudo systemctl enable encoder-rtmp');
|
||||
exec('sudo systemctl restart encoder-rtmp');
|
||||
} else {
|
||||
exec('sudo cp /var/www/nginx.conf /etc/nginx/');
|
||||
exec("sudo systemctl restart nginx");
|
||||
exec('sudo systemctl stop encoder-rtmp');
|
||||
exec('sudo systemctl disable encoder-rtmp');
|
||||
}
|
||||
} {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -338,5 +338,5 @@ sudo systemctl status srt.service --no-pager
|
|||
|
||||
sudo systemctl enable --now nginx.service
|
||||
sudo systemctl status nginx.service --no-pager
|
||||
sudo chmod -R 777 /var/www/html/*
|
||||
sudo chown -R www-data:www-data /var/www/html/*
|
||||
sudo chmod 777 -R /var/www
|
||||
sudo chown -R www-data:www-data /var/www
|
||||
Loading…
Reference in New Issue