Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nginx
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
nginx
Commits
234c2a2e
Commit
234c2a2e
authored
Apr 18, 2019
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial commit
parents
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
Makefile
Makefile
+39
-0
nginx-1.15.2.tar.gz
nginx-1.15.2.tar.gz
+0
-0
No files found.
Makefile
0 → 100644
View file @
234c2a2e
all
:
nginx-service
tar
xf nginx-1.15.2.tar.gz
cd
nginx-1.15.2
&&
./configure
--prefix
=
/usr
--conf-path
=
/etc/nginx/nginx.conf
--error-log-path
=
/var/log/nginx/error.log
--http-log-path
=
/var/log/nginx/access.log
--pid-path
=
/run/nginx.pid
--lock-path
=
/var/log/nginx.lock
--http-client-body-temp-path
=
/tmp/nginx-client-body
--http-proxy-temp-path
=
/tmp/nginx-proxy-temp
--without-http_fastcgi_module
--without-http_uwsgi_module
--without-http_scgi_module
--with-http_ssl_module
--with-http_v2_module
$(MAKE)
-C
nginx-1.15.2
$(MAKE)
-C
nginx-1.15.2
install
@
echo
"
$$
NGINX_SERVICE"
>
/lib/systemd/system/nginx.service
systemctl
enable
nginx.service
mv
/usr/html /srv/www
rm
/etc/nginx/fastcgi.conf
rm
/etc/nginx/fastcgi.conf.default
rm
/etc/nginx/fastcgi_params
rm
/etc/nginx/fastcgi_params.default
rm
/etc/nginx/mime.types.default
rm
/etc/nginx/nginx.conf.default
rm
/etc/nginx/scgi_params
rm
/etc/nginx/scgi_params.default
rm
/etc/nginx/uwsgi_params
rm
/etc/nginx/uwsgi_params.default
rm
-rf
nginx-1.15.2
nginx-service
:
define
NGINX_SERVICE
[Unit]
Description
=
The NGINX HTTP and reverse proxy server
After
=
syslog.target network.target remote-fs.target nss-lookup.target
[Service]
Type
=
forking
PIDFile
=
/run/nginx.pid
ExecStartPre
=
/usr/sbin/nginx
-t
ExecStart
=
/usr/sbin/nginx
ExecReload
=
/usr/sbin/nginx
-s
reload
ExecStop
=
/bin/kill
-s
QUIT
$$
MAINPID
PrivateTmp
=
true
[Install]
WantedBy
=
multi-user.target
endef
export
NGINX_SERVICE
nginx-1.15.2.tar.gz
0 → 100644
View file @
234c2a2e
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment