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 $array = [ [ 'title' => '标题5', 'views' => 500 ], [ 'title&...

阅读全文

一个好用的php id加密解密类,适用于隐藏用户真实id。hashids

效果 <?php use Hashids\Hashids; $hashids = new Hashids(); // no padding $hashids->encode(1); #结果 jR #指定返回10个字符长度的加密串 $hashids...

阅读全文

yum 安装redis5

更新yum源 # EPEL的全称叫 Extra Packages for Enterprise Linux 。EPEL是由 Fedora 社区打造,为 RHEL 及衍生发行版如 CentOS、Scientific Linux 等提供高质...

阅读全文

欢迎留言