problem when compile and install nginx from source

General support questions
Post Reply
m4hdi
Posts: 37
Joined: 2014/09/04 08:33:05
Location: Iran
Contact:

problem when compile and install nginx from source

Post by m4hdi » 2014/12/11 15:31:55

hello , good time

i downloaded nginx 1.6.2 from this url :
http://nginx.org/download/nginx-1.6.2.tar.gz

then i runned this commands :
tar -zxvf nginx-1.6.2.tar.gz
cd nginx*
./configure
make
make install
-----------------------------------
then installed well - when i want start via this command "systemctl start nginx.service" , then i see this error :
Failed to issue method call: Unit nginx.service failed to load: No such file or directory.

then i compiled apache 2.4.10 from source and thats show me this error !!

------
i can install nginx or apache from rpm pakage . but i needs install from source !!

please help me ... - thanks.

User avatar
TrevorH
Forum Moderator
Posts: 29112
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: problem when compile and install nginx from source

Post by TrevorH » 2014/12/11 18:04:48

We don't recommend or support source installs.

The nginx people have a yum repo for nginx packages. You'd be better using that. For httpd, the CentOS 7 copy should be sufficiently up to date for most requirements and is certainly better from a security POV since all fixes for security vulnerabilities are backported to it.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

m4hdi
Posts: 37
Joined: 2014/09/04 08:33:05
Location: Iran
Contact:

Re: problem when compile and install nginx from source

Post by m4hdi » 2014/12/11 18:31:09

thank you.

i want install two apache webservers !
webserver 1 with port : 80
webserver 2 with port 1010

can you help me how can i install them from rpm ?

thanks.

Post Reply

Return to “CentOS 7 - General Support”