1、Projectnet 故障排除 Troubleshooting故障排除 Troubleshooting从科技社区跳转到:导航,搜索内容隐藏 1 故障排除 1.1 简介 1.2 P 将无法启动,或者您不能登录 1.2.1 检查 DB 安装/连接 1.2.2 检查 JRE 和 Tomcat 的安装 1.2.3 检查部署 & P 的配置 1.3 您可以登录到该应用程序,但东西不工作的权利 1.3.1 停止上市新的活动的活动日志 1.3.1.1 固定 Apache ActiveMQ Linux P 的服务器上 1.3.1.2 修复 Windows P Server 上的 Apache ActiveMQ
2、 1.4 P 日志文件 2 、更多帮助编辑故障排除编辑简介执行这些简单的步骤来验证您的 P 安装是设置和配置正确。具体的指示完成每个步骤包含在原始的安装说明,引用下面的每一步。一般情况下,一个人其他的人做了安装应检查是否有错误。除了此列表中,您将需要用户名称、 密码和使用的原始安装程序设置。编辑P 将无法启动,或者您不能登录编辑检查 DB 安装/连接 登录到 Oracle 主页,请检查 db 的存在性 使用 tnsping 检查与tnsping 数据库侦听器的存在性. 另外,请检查, sqlplus 科技 / 连接。 验证 Tomcat 配置文件中的 JDBC 设置部署到 Tomcat 服务器
3、的 P中所述 (林 * x或Windows). 编辑检查 JRE 和 Tomcat 的安装 检查的 JVM 的位置 验证 JVM 已升级,联合教育委员会 检查 Tomcat 的安装目录 检查 TOMCAT_HOME/bin/Catalina.sh JAVA_OPTS 设置正确。 请检查配置 Tomcat 是否自动启动 (取决 OS 如何做到这一点) 请确保 ActiveMQ 是安装并配置为自动启动编辑检查部署 & P 的配置 验证 TOMCAT_HOMEwebapps 包含的 P 应用程序中,/ROOT 或 /pnet。 你能到http:/ (root.war 装置) 或http:/ 的登录页
4、 / 科技吗? 如果你不能,你可以达到使用端口 8080,登录页 (http:/: 8080 或http:/ / pnet:8080) 吗? 如果你只可以达到登录页面,当您使用端口 8080,然后问题是在您的 Apache httpd 和 Tomcat 一体化。编辑您可以登录到该应用程序,但东西不工作的权利1. 作为 appadmin 登录2. 检查步骤 9 中的所有设置 wiki:Production-Tomcat55 #Step8:ConfigurePSystemSettings 配置 P 系统设置。3. 请检查安装的许可证属性和密钥 (从页的步骤 9)4. 注册为一个测试用户使用的许可证
5、密钥。5. 注册时验证收到的电子邮件系统 如果主机名不正确然后仔细检查管理模块中的系统设置,在默认配置中的 defaulthost 标记。编辑停止上市新的活动的活动日志如果您注意到活动日志不再显示当前的事件日志中它意味着称为 ActiveMQ P 的一部分已经停止工作。要修复此问题,您需要有运行 P 的服务器系统管理员访问。编辑修复 Apache ActiveMQ Linux P 的服务器上1. 到服务器打开一个控制台窗口和日志。2. 确定 ActiveMQ 是否运行通过执行下面的命令: ps -efa | grep java这将返回所有正在运行的 Java 进程的列表。请检查以查看是否其中的
6、任何正在运行activemq;如果 ActiveMQ 是不再运行它将缺席从列表。3.您还可以检查 ActiveMQ 日志文件: tail /data/wrapper.log如果 ActiveMQ 停止您将看到类似于: INFO | jvm 1 | 2012/02/02 14:36:24 | INFO | Connector vm:/localhost Stopped INFO | jvm 1 | 2012/02/02 14:36:24 | INFO | ActiveMQ JMS Message Broker (localhost, ID:-33044-1318941048586-0:1) st
7、opped INFO | jvm 1 | 2012/02/02 14:36:24 | INFO | ActiveMQ JMS Message Broker (localhost, ID:-33044-1318941048586-0:1) stopped STATUS | wrapper | 2012/02/02 14:36:25 | service activemq start5.再次,作为消息像检查 ActiveMQ 的日志文件: INFO TransportConnector - Connector vm:/localhost Started 编辑修复 Windows P Server 上
8、的 Apache ActiveMQ1. 单击开始菜单。2. 在搜索程序和文件框中键入services.msc. 3. 时它会显示在上面 ; 的程序列表中,单击Services.msc这将打开服务控制面板。4. 查找 ActiveMQ 服务的已安装服务列表中。其状态应显示开始和它的启动类型为自动 。 5. 如果这些都不是真正右键单击服务并从弹出式菜单中选择属性。6. 在属性对话框中设置启动类型:到自动,单击 开始 按钮。7. 关闭该对话框与 确定 按钮。8. 关闭服务控制面板。编辑P 日志文件为了帮助调试安装和应用程序问题 P 提供利用 log4j 记录器的日志记录机制。此外,应用程序服务器有他
9、们自己的日志文件。对于使用 Apache Tomcat 的安装,Tomcat 日志文件保存在 CATALINA_HOME/日志中。要控制.net 项目级别的日志记录您需要创建的文件CATALINA_HOMEwebapps WEB-INFclasseslog4j.properties。当 log4j.properties 丢失日志记录处于关闭状态。这个文件还指定的日志文件的位置。例如,下面的 log4j.properties 文件设置日志记录级别进行调试 (最高级别),并将生成的日志文件放在 C:Tomcat5logspnet-log.log (注意: 不要的使用调试水准不断因为它可以影响 To
10、mcat 性能和快速增长的日志文件)。 log4j.rootLogger=DEBUG, logfile, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d %p %c - %n log4j.appender.logfile=org.apache.log4j.RollingFileAppender log4
11、j.appender.logfile.File=C:Tomcat5logspnet-log.log log4j.appender.logfile.MaxFileSize=8192KB # Keep three backup files. log4j.appender.logfile.MaxBackupIndex=100 # Pattern to output: date priority category - message log4j.appender.logfile.layout=org.apache.log4j.PatternLayout log4j.appender.logfile.l
12、ayout.ConversionPattern=%d %p %c - %m%n 编辑更多帮助 管理员手册-管理员手册内容 额外的帮助也是可用的P 用户论坛 9 1:TroubleshootingFrom Pnet-CommunityJump to: navigation, searchContentshide 1 Troubleshooting 1.1 Introduction 1.2 P Will Not Start or You Cannot Login 1.2.1 Check DB installation/connection 1.2.2 Check installation of J
13、RE and Tomcat 1.2.3 Check deployment & configuration of P 1.3 You Can Log Into the Application But Something Does Not Work Right 1.3.1 The Activity Log stopped listing new activities 1.3.1.1 Fixing Apache ActiveMQ on a Linux P Server 1.3.1.2 Fixing Apache ActiveMQ on a Windows P Server 1.4 P Log Fil
14、es 2 More Helpedit Troubleshooting edit Introduction Perform these simple steps to verify that your P installation is set up and configured correctly. Specific directions for completing each step are included in the original installation instructions, referenced at each step below. Generally, someon
15、e other that the person who did the installation should check for errors. In addition to this list, you will need the user names, passwords and settings used by the original installer. edit P Will Not Start or You Cannot Login edit Check DB installation/connection Log into Oracle Home Page, check ex
16、istence of db Use tnsping to check existence of database listener with tnsping . Also, check that sqlplus pnet/ connects. Verify the JDBC settings in the Tomcat configuration file as outlined in Deploy P to Tomcat Server ( Lin*x or Windows). edit Check installation of JRE and Tomcat Check location o
17、f JVM Verify JVM was upgraded with JCE Check installation directory of Tomcat Check TOMCAT_HOME/bin/Catalina.sh for the correct JAVA_OPTS settings. Check that Tomcat is configured to auto-start (depends upon OS how this is done) Make sure ActiveMQ is installed and configured to auto-start edit Check
18、 deployment & configuration of P Verify TOMCAT_HOMEwebapps contains the P application, either /ROOT or /pnet. Can you get to the login page at http:/ (root.war installations) or http:/pnet? If you cannot, can you reach the login page using port 8080 (http:/:8080 or http:/pnet:8080)? If you can only
19、reach the login page when you use port 8080 then the issue is in your Apache httpd and Tomcat integration. edit You Can Log Into the Application But Something Does Not Work Right 1. Login as appadmin 2. Check all settings from Step 9 wiki:Production-Tomcat55#Step8:ConfigurePSystemSettings Configure
20、P System Settings. 3. Check installation of license properties and key (Step 9 from above page) 4. Register as a test user using license key. 5. Verify receipt of email from system while registering If the hostname is incorrect then double-check the System Settings in the administration module and t
21、he defaulthost token in the default configuration. edit The Activity Log stopped listing new activities If you notice that the Activity Log no longer shows current events in the log it means a part of P called ActiveMQ has stopped working. To fix this you will need to have system administrator acces
22、s to the server running P. edit Fixing Apache ActiveMQ on a Linux P Server 1. Open a console window and log into the server. 2. Determine if ActiveMQ is running by executing the following command: ps -efa | grep javaThis will return a list of all running Java processes. Check to see if any of them a
23、re running activemq; if ActiveMQ is no longer running it will be absent from the list. 3. You can also check the ActiveMQ log file: tail /data/wrapper.logIf ActiveMQ stopped you will see something similar to: INFO | jvm 1 | 2012/02/02 14:36:24 | INFO | Connector vm:/localhost Stopped INFO | jvm 1 |
24、2012/02/02 14:36:24 | INFO | ActiveMQ JMS Message Broker (localhost, ID:-33044-1318941048586-0:1) stopped INFO | jvm 1 | 2012/02/02 14:36:24 | INFO | ActiveMQ JMS Message Broker (localhost, ID:-33044-1318941048586-0:1) stopped STATUS | wrapper | 2012/02/02 14:36:25 | service activemq start5. Again,
25、check the ActiveMQ log file for as message like: INFO TransportConnector - Connector vm:/localhost Started edit Fixing Apache ActiveMQ on a Windows P Server 1. Click the Start menu. 2. In the Search programs and files box type services.msc. 3. Click Services.msc when it is displayed in the Programs
26、list above; this will open the Services control panel. 4. Look for the ActiveMQ service in the list of installed services. Its Status should show Started and its Startup Type as Automatic. 5. If neither of these are true right-click on the service and select Properties from the pop-up menu. 6. In th
27、e properties dialog set Startup type: to Automatic and click the Start button. 7. Close the dialog with the OK button. 8. Close the Services control panel. edit P Log Files To help debug installation and application issues P provides a logging mechanism utilizing the log4j logger. In addition, the a
28、pplication servers have log files of their own. For installations using Apache Tomcat, the Tomcat log files are saved in CATALINA_HOME/logs. To control Ps level of logging you need to create the file CATALINA_HOMEwebapps WEB-INFclasseslog4j.properties. When log4j.properties is missing logging is turned off. This file also specifies the location of the log file. For example, the following log4j.properties file sets the logging level to debug (the highest level) and places the resulting log file in C:Tomcat5logspnet-log.log (Note:
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1