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 function getLines($file) { $f = fopen($file, 'r'); try { while ($line = fgets($f)) { yield $line; ...

阅读全文

php获取字符串里面的图片,xpath方式

代码 <?php $html = <<<str <html> <head> <title>123</title> </head> <body> <img src=&quo...

阅读全文

Thinkphp5 in查询结果按照in里面的顺序排

或许有人会注意过,但我以前真不知道 SQL: select * from table where id IN (3,6,9,1,2,5,8,7); 这样的情况取出来后,其实,id还是按1,2,3,4,5,6,7,8,9,排序...

阅读全文

欢迎留言