
Server
如锋
金融IT
展开
-
Failed to encrypt the section connectionStrings using provider RsaProtectedConfigurationProvider
使用aspnet_regiis.exe加密web.config connectionStrings时奇奇怪怪的错误原创 2023-09-03 12:01:16 · 788 阅读 · 0 评论 -
IIS网站只能通过localhost访问,IP和主机名都不行
从一台机复制出另一台的时候,发现IIS的网页只能通过localhost访问,IP和hostname都不行。Event log发现还去绑定原来那台机。重新绑定一下就可以。原创 2023-03-26 10:58:58 · 1902 阅读 · 1 评论 -
Tomcat shutdown port 8005这个端口可以关掉吗?
默认开启,telnet后直接输入SHUTDOWN,可成功关闭Tomcat。停止Tomcat的脚本依赖于这个端口的服务功能。禁用之后,使用命令行无法关闭Tomcat。原创 2023-03-04 11:59:43 · 1847 阅读 · 0 评论 -
使用Powershell发邮件Send Mail from PowerShell Using SMTP
使用Powershell发邮件$EmailFrom = “from.email@dummy.com”$EmailTo = “to.email@dummy.com”$Subject = “Hello”$Body = “Hello World”$SMTPServer = “smtp.server.host”$SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 587)$SMTPClient.EnableSsl = $true$SMTP原创 2022-04-10 14:06:10 · 3355 阅读 · 0 评论 -
Tomcat无法将位于[XX]的资源添加到Web应用程序[XX]的缓存中
26-Jan-2022 09:52:13.920 警告 [main] org.apache.catalina.webresources.Cache.getResource 无法将位于[/WEB-INF/classes/***]的资源添加到Web应用程序[/helloworld]的缓存中,因为在清除过期缓存条目后可用空间仍不足 - 请考虑增加缓存的最大空间。vi tomcat\conf\context.xml<Resources cachingAllowed="true" cacheMaxSize=原创 2022-03-29 20:10:24 · 3869 阅读 · 0 评论 -
Tomcat AJP连接器配置secretRequired=true,但是属性secret确实空或者空字符串
Tomcat报错27-Jan-2022 14:09:07.450 信息 [main] org.apache.coyote.AbstractProtocol.start 开始协议处理句柄[“https-jsse-nio-8443”]27-Jan-2022 14:09:07.459 严重 [main] org.apache.catalina.util.LifecycleBase.handleSubClassException 无法启动组件[Connector[AJP/1.3-8009]]org.apach原创 2022-03-20 17:59:29 · 4570 阅读 · 1 评论 -
nginx: [emerg] the "ssl" parameter requires ngx_http_ssl_module
Nginx加ssl_certificate配置后报这个错。将相应模块安装回来即可。$ sudo nginx -s reloadnginx: [emerg] the "ssl" parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf:38修改前$ sudo nginx -Vnginx vers...原创 2019-09-18 21:01:53 · 8162 阅读 · 2 评论 -
使用curl测试RESTful API
发现git bash里curl命令也可以用,无需安装其他工具就可以用来简单测试RESTful API,非常方便。1. GETcurl localhost:3000curl -X GET localhost:3000include header:curl -i localhost:3000verbose info:curl -v localhost:3000curl -v -X GE...原创 2018-09-25 23:43:47 · 3343 阅读 · 0 评论 -
oracle
CREATE SEQUENCE SQ_W_ACCOUNT INCREMENT BY 1 START WITH 1 MAXVALUE 999999999999 CYCLE NOCACHE; CREATE TRIGGER W_ACCOUNT_TGBEFORE INSERT ON W_ACCOUNTREFERENCING NEW AS new OLD AS oldFOR EACH原创 2010-01-18 16:04:00 · 495 阅读 · 0 评论 -
linux jdk tomcat
JDK: 增加执行权限然后执行即可,默认解压到当前目录:chmod u+x jdk-6u13-linux-i586.bin./jdk-6u13-linux-i586.bin 环境变量: 将环境变量加入到profile中,如果写入到(/etc/profile)对所有用户都生效,如果只对某个用户生效写入到(/home/username/profile)中 export原创 2009-05-17 14:40:00 · 549 阅读 · 0 评论 -
linux 防火墙 iptables
#删除原来 iptables 里面已经有的规则iptables -Fiptables -X #抛弃所有不符合三种链规则的数据包iptables -P INPUT DROPiptables -P OUTPUT DROPiptables -P FORWARD DROP iptables -A INPUT -i lo -j ACCEPTiptables -A OUTPUT -o lo -原创 2009-05-09 02:12:00 · 1117 阅读 · 0 评论 -
Redhat9.0简体中文版文本模式乱码
Redhat9.0简体中文版文本模式乱码解决 查看使用语言详细信息:locale 修改:/etc/sysconfig/i18n 加入:LC_ALL=POSIX 注销或重启原创 2009-05-03 19:18:00 · 565 阅读 · 0 评论 -
Tomcat和IIS共用服务器80端口
IIS on Tomcat - same server, same port In the interest of being difficult, cheap, and looking for adventure we are choosing to run IIS and Tomcat (or for that matter other web servers) on the same转载 2009-04-28 09:37:00 · 916 阅读 · 0 评论 -
vmware red hat linux9 no link present. Check cable
用vmware虚拟机装red hat linux9之后,连接网络总是出现问题:Determining IP information for eth0... failed; no link present. Check cable? 解决方法:修改ifcfg-eth,n通常为0 /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/syscon原创 2009-04-25 17:10:00 · 3058 阅读 · 0 评论 -
目前流行的日志记录工具配置大全(log4j,Jakarta Commons Logging,jdk1.4 logging)
How to do the initial setup of my logging framework 如何设置我的日志框架?原文来自于http://log4e.jayefem.de/index.php/Log4E:FAQIf you are already familiar with your logging framework you might want to skip this secti转载 2009-04-22 18:16:00 · 1503 阅读 · 0 评论 -
tomcat重启脚本
::tomcat重启@echo off::tomcat作为系统服务运行,则需先安装tomcat5服务rem D:/apache-tomcat-5.5.27/bin/service.bat install@echo 正在停止tomcat5rem net stop tomcat5call "D:/apache-tomcat-5.5.27/bin/shutdown.bat"::延时5秒ping原创 2009-04-10 11:35:00 · 1784 阅读 · 0 评论 -
MySQL服务切换脚本
::MySQL服务切换,如果正在运行则停止,否则启动@echo off for /f "skip=3 tokens=4" %%i in (sc query MySQL) do set "zt=%%i" &goto :next :next if /i "%zt%"=="RUNNING" ( echo MySQL正在运行,现在停止运行。。。 net stop MySQL ) else (原创 2009-04-10 11:22:00 · 531 阅读 · 0 评论