Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tj_tool
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
牟俊洁
tj_tool
Commits
0534b2b3
Commit
0534b2b3
authored
Oct 31, 2025
by
白满斌
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.eoffcn.com:mjj42250_1/tj_tool
parents
afbf1ecc
9a41e3b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
build.sh
build.sh
+6
-4
crontab
crontab
+13
-0
No files found.
build.sh
View file @
0534b2b3
...
...
@@ -4,13 +4,15 @@ containerCount=`docker ps -a | grep "tj_tool" | grep -v "grep" | wc -l`
if
[
$containerCount
-eq
0
]
then
docker run
-itd
--privileged
=
true
--restart
=
always
\
--privileged
=
true
\
-v
$(
pwd
)
:/data/www/project
\
-v
/data/cronlog_tj
_tool
:/data/cronlog
\
-v
/data/container/nginx/tj
_tool
:/usr/local/nginx/conf/vhost
\
-v
/data/cronlog_tj
app
:/data/cronlog
\
-v
/data/container/nginx/tj
app
:/usr/local/nginx/conf/vhost
\
-v
/data/container/nginx/nginx.conf:/usr/local/nginx/conf/nginx.conf
\
-v
/data/container/php/etc:/usr/local/php/etc
\
-p
8901:8901
\
-p
8902:8902
\
-p
9091:9091
\
-p
9094:9094
\
-p
9097:9097
\
--name
tj_tool registry.cn-hangzhou.aliyuncs.com/wuzhouhui/lnp-develop:v15
\
/usr/sbin/init
fi
crontab
0 → 100755
View file @
0534b2b3
# 秒分时日月周年(其余与crontab相同)
# 监控nginx和php-fpm进程
* * * * * * * /bin/bash /root/monitor-lnmp.sh
# 任务调度注册
* * * * * cd /data/www/project && php artisan schedule:run >> /dev/null 2>&1
# 消息队列进程
* * * * * * * /bin/bash /data/www/project/job.sh
# 每日凌晨更新日志文件链接
3 0 0 * * * * /bin/bash /data/www/project/log.sh
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