jenkins权限管理,不同用户显示不同项目
1、安装Role-based Authorization Strategy插件 系统管理-管理插件-可选插件中安装Role-based Authorization Strategy 安装后重启jenkins使其生效 2、在系统管理-Configure Glob … 阅读全文
1、安装Role-based Authorization Strategy插件 系统管理-管理插件-可选插件中安装Role-based Authorization Strategy 安装后重启jenkins使其生效 2、在系统管理-Configure Glob … 阅读全文
当前系统Centos6.9,Jenkins版本2.60.2 由于jenkins默认目录安装在/var/lib/jenkins/下,更改目录,移到单独的一个磁盘上 jenkins默认配置文件在/etc/sysconfig/jenkins 目录端口及启动用户都是通 … 阅读全文
gitlab安装可参考https://blog.whsir.com/post-1419.html 演示环境:当前系统Centos6.9,使用IP192.168.0.80 修改gitlab仓库地址 编辑gitlab.yml文件 vim /opt/gitlab/e … 阅读全文
在Cacti中添加设备后,可能会看到SNMP error错误信息,这里提供几个排错思路供参考。 1、首先确认是否安装了php-snmp扩展 php -m | grep snmp 2、被监控机snmp是否启动 service snmpd status 3、在ca … 阅读全文
FastCopy,文件快速复制工具。 "FastCopy-M" 是免费开源软件 "FastCopy" 的一个二次开发分支。 github地址:https://github.com/Mapaler/FastCopy-M 下载地址: https://down.wh … 阅读全文
参考文档: https://git-scm.com/book/zh/v2/起步-安装-Git 1、确认当前没有装过git的rpm包(如有则卸载)
1 |
yum remove git |
2、安装所需依赖 [crayon-67d424d … 阅读全文
在安装cacti时,有一段报错
1 |
ERROR: Your Cacti database login account does not have access to the MySQL TimeZone database. Please provide the Cacti database account "select" access to the "time_zone_name" table in the "mysql" database, and populate MySQL's TimeZone information before proceeding. |
解决办法:登录mysql,执行以下内容
1 2 |
mysql> GRANT SELECT ON mysql.time_zone_name TO cacti@localhost IDENTIFIED BY 'cactiwhsir'; mysql> flush privileges; |
然后发现又报错 [crayon-67d424d929c2 … 阅读全文
报错信息1:
1 2 |
false // No help2man // --output=spine.1 --name='Data Collector for Cacti' --no-info --version-option='--version' ./spine make: *** [spine.1] Error 1 |
解决办法:
1 |
yum -y install help2man |
报错信息2:
1 2 3 4 |
libtool: link: gcc -I/usr/local/snmp/include/net-snmp -I/usr/local/snmp/include/net-snmp/.. -I/usr/local/mysql/include -g -O2 -o spine sql.o spine.o util.o snmp.o locks.o poller.o nft_popen.o php.o ping.o keywords.o error.o -L/usr/local/snmp/lib -L/usr/local/mysql/lib -lssl /usr/local/snmp/lib/libnetsnmp.so -lmysqlclient -lrt -lcrypto -lz -lpthread -lm -Wl,-rpath -Wl,/usr/local/snmp/lib -Wl,-rpath -Wl,/usr/local/snmp/lib /usr/bin/help2man --output=spine.1 --name='Data Collector for Cacti' --no-info --version-option='--version' ./spine help2man: can't get `--help' info from ./spine make: *** [spine.1] Error 127 |
解决办法 … 阅读全文
Xshell 是一个极好用的免费SSH客户端,可以作为Telnet、Rlogin、SSH、SFTP、Serial等协议的安全终端模拟软件,让你轻松管理远程主机。 目前XSHELL多版本存在后门,或上传用户服务器账号密码!!! 此版本是Xmanager Ente … 阅读全文
在windows2008下配置II7 web.config 当通过手机访问www域名时,自动跳转到对应的移动域名下
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <!-- http://www.whsir.com 替换为对应的网站,带www--> <httpRedirect enabled="false" destination="http://www.whsir.com" exactDestination="false" childOnly="false" httpResponseStatus="Permanent" /> <!--启用Gzip压缩--> <urlCompression doStaticCompression="true" doDynamicCompression="false" /> <defaultDocument> <files> <clear /> <add value="Default.htm" /> <add value="Default.asp" /> <add value="index.htm" /> <add value="index.html" /> <add value="index.php" /> <add value="default.aspx" /> </files> </defaultDocument> </system.webServer> <system.webServer> <rewrite> <rules> <rule name="WWW Redirect" stopProcessing="true"> <match url=".*" /> <conditions> <!--xxx.com,替换为对应的网站,不带www--> <add input="{HTTP_HOST}" pattern="^whsir.com$" /> </conditions> <!-- http://www.whsir.com 替换为对应的网站,带www--> <action type="Redirect" url="http://www.whsir.com/{R:0}" redirectType="Permanent" /> </rule> <rule name="Mobile Jump" stopProcessing="true"> <match url="^(.*)$" /> <conditions logicalGrouping="MatchAll"> <add input="{HTTP_USER_AGENT}" pattern="(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino" /> </conditions> <!-- 输入要跳转的手机站点 --> <action type="Redirect" url="http://m.whsir.com/" redirectType="Found" /> </rule> </rules> </rewrite> </system.webServer> </configuration> |
~微信打赏~ 赏