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 向函数传引用

当你要传递的值特别大时,使用传引用的方式 会减小内存的开销。或者当你需要改变传递参数的原值时,也可以使用此方式。 <?php /** * 测试 */ class Tes...

阅读全文

centos yum 安装golang

Centos # Current version: 1.12.5 $ rpm --import https://mirror.go-repo.io/centos/RPM-GPG-KEY-GO-REPO $ curl -s https://mirror.go-repo.io/centos/go-...

阅读全文

mac,vs code调试go文件的时候出现”Could not launch process: stub exited while waiting for connection”

1. sudo vi /etc/hosts 2.按顺序输入以下内容 255.255.255.255 broadcasthost 127.0.0.1 localhost ::1 localhost

阅读全文

欢迎留言