jenkins

重启:sudo systemctl restart jenkins
查看状态:sudo systemctl statusjenkins
关闭:sudo systemctl stop jenkins
启用不同的端口启动jenkins :sudo java -jar /usr/lib/jenkins/jenkins.war –httpPort=8081

jenkins 安装时注意事项
启动jenkins 提示 active exited .
解决方案:https://stackoverflow.com/questions/42607771/jenkins-active-exited

权限问题:

vim /etc/sysconfig/jenkins
确定启动jenkins的用户是不是jenkins $JENKINS_USER=”jenkins”
//给权限
chown -R jenkins:jenkins /var/lib/jenkins
chown -R jenkins:jenkins /var/cache/jenkins
chown -R jenkins:jenkins /var/log/jenkins
systemctl restart jenkins

gitlab

重启:sudo gitlab-ctl restart
查看状态:sudo gitlab-ctl status
关闭:sudo systemctl gitlab-ctl stop
重新读取配置: sudo gitlab-ctl reconfigure

php实现redis延时队列

写了一个简单的类实现 使用方法 $class = new RedisDelayQueue(); $class->execute(); <?php namespace app\common\service; class RedisDelay { ...

阅读全文

centos7安装python3.8

1.安装python 依赖 sudo yum -y install epel-release sudo yum -y update 安装完后可以 reboot 重其服务器,非必须。 2.安装gcc编译环境等等 sudo yum -y gro...

阅读全文

php获取包含10w个手机号的txt文件(逗号隔开)

txt文件格式如下 13000000000,13000000005,13000000403,13001010129,13001010688,13001010838,13001016389,13001019538,13001030005,13001042700,13001047495...

阅读全文

欢迎留言