#提交后的返回的信息 1.To add the admin user, copy and paste the following into c:\resin-4.0.62\conf/resin.properties: (将以下配置加入resin.propertie中)
admin_user : admin admin_password : {SSHA}6c3j7qekfBfEWQL9uD6wiasV9oCz3BGG #当然您也可以采用Use "resinctl generate-password" and copy/paste here to set the admin生成
2.默认是只允许localhost访问,当您设置下面的参数后将所有机器都能访问后台页面(注意防火墙的影响) add to c:\resin-4.0.62\conf/resin.properties: admin_external : true admin_secure : true Or modify directly c:\resin-4.0.62\conf\resin.xml: <resin:set var="resin_admin_external" value="true"/>
#方式3:通过resin-admin后台进行部署(注意需要开启ssl) Actions can only be performed on a local server and over a secure connection (SSL)." Try https://192.168.17.129:8443/resin-admin/index.php?q=deploy&s=0 访问网站:https://192.168.17.129:8443/Demo-1.1.0/ Hello World!WeiyiGeek
# resin.properties - 配置变量值 # See resin.xml, cluster-default.xml, and health.xml for full configuration. # Any variable defined by ${...} can be set as a property in this file. # # Individual server overrides can be specified by prepending the server.id. # 日志记录等级 # log_level : info # app-0.log_level : finest # # 与Resin XML配置类似,修改此文件将触发重启。 # General log level (modify resin.xml for more granular log level adjustments) # log_level : finer
# List Triad server ip-addresses:hmux-port for each tier, space separated #应用服务设置 # App tier Triad servers must be listed to enable web-tier to # app-tier load-balancing
# Set HTTP and HTTPS bind address # http_address : *
# Set HTTP and HTTPS ports. # http - default for all clusters and servers # app.http - default for all servers in cluster 'app' # app-0.http - for server 'app-0' only # http : 8080
<!-- JDK日志API的日志配置 --> <log-handler name="" level="all" path="stdout:" timestamp="[%y-%m-%d %H:%M:%S.%s]" format=" {${thread}} ${log.message}"/> <!-- - Alternative pseudo-TTCC log format - <log-handler name="" level="all" path="stdout:" - timestamp="%y-%m-%d %H:%M:%S.%s" - format=" [${thread}] ${log.level}${log.shortName} - ${log.message}"/> --> <!-- - level='info'for production - 'fine' or 'finer'for development and troubleshooting - 日志信息级别:info生产环境 fine和finer适合开发环境和调试环境 --> <logger name="" level="${log_level?:'info'}"/> <logger name="com.caucho.java" level="config"/> <logger name="com.caucho.loader" level="config"/>
<!-- - Default configuration applied to all clusters, including - HTTP, HTTPS, and /resin-admin configuration. --> <resin:import path="${__DIR__}/cluster-default.xml"/> <!-- - health configuration --> <resin:import path="${__DIR__}/health.xml"/>
<!-- - Remote management requires at least one enabled admin user. --> <resin:AdminAuthenticator> <user name="${admin_user}" password="${admin_password}"/> <resin:import path="${__DIR__}/admin-users.xml" optional="true"/> </resin:AdminAuthenticator>
#1.隐藏Resin响应头中的Server头 #resin.conf增加<server-header>节点 <cluster id="app-tier"> <!-- sets the content root for the cluster, relative to server.root --> <root-directory>.</root-directory> <server-header>Foo/1.0</server-header> <server-default>
%b result content length %D time taken to complete the request in microseconds (since 3.0.16) %h remote IP addr %{xxx}i request header xxx %{xxx}o response header xxx %{xxx}c cookie value xxx %n request attribute %r request URL %s status code %{xxx}t request date with optional time format string. %T time taken to complete the request in seconds %u remote user %U request URI %v name of the virtual host serving the request
%a day of week (short) %A day of week (verbose) %b day of month (short) %B day of month (verbose) %c Java locale date %d day of month (two-digit) %H 24-hour (two-digit) %I 12-hour (two-digit) %j day of year (three-digit) %m month (two-digit) %M minutes %p am/pm %S seconds %s milliseconds %W week in year (three-digit) %w day of week (one-digit) %y year (two-digit) %Y year (four-digit) %Z time zone (name) %z time zone (+/-0800)
方式1.请访问本博主的B站【WeiyiGeek】首页关注UP主, 将自动随机获取解锁验证码。
Method 2.Please visit 【My Twitter】. There is an article verification code in the homepage.
方式3.扫一扫下方二维码,关注本站官方公众号
回复:验证码
将获取解锁(有效期7天)本站所有技术文章哟!