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

使用yum安装Go(Golang)

使用yum安装Go(Golang) 本来准备直接yum install golang或者yum install go, 执行命名后,发现没有这个包。于是只能先添加源,然后在使用命令行安装了。 Ins...

阅读全文

php使用Carbon获取2个日期之间的日期

<?php use Carbon\CarbonPeriod; $period = CarbonPeriod::create('2018-06-14', '2018-06-20'); // Iterate over the period fore...

阅读全文

dart Error: Field ‘xxx’ should be initialized because its type ‘String’ doesn’t allow null

最近在学dart class的构造函数时候出现 这个问题 原因是firstName没有初始化,不能为null 解决方案: 1.在String后面加个? class Person { String? firstN...

阅读全文

欢迎留言