About Tomcat under multiple projects configure a log4j.properties, to output the respective log of the problem,
After the actual work of the summary and investigation, here to make a summary and memo.
To lift the log4j configuration, our common configuration method is to create a log4j.properties file for each project and write the information of its own output log.
But I encountered a problem at work, in fact, the load of the Log4j.properties file a
Settings: The default is the. m2/settings.xml file in the C-drive user directory, where you configure the externally installed MAVEN usage profile, as I am using the MAVEN installation directory under the conf/ Settings.xml file, select the "Update Settings" button below and don't forget to click on it.
3. Use MyEclipse to import a project created by Maven :
There are two ways to import a tutorial here:
1) use MyEclipse General engineering to import, the steps are as follows:
1> Open DOS First
Since the previous projects were developed using MyEclipse, it is now time to switch to eclipse. However, the project was imported into eclipse and found that the project was not a Web project and could not be deployed to Tomcat. This problem has been solved now.
First, make sure that eclipse on your machine is a Java EE version, or that you have installed the WTP plugin
two. Close project first, and then modify the. project file under Eclipse
http://news.cnblogs.com/n/506775/
1. Webbench
Webbench is a very simple web site pressure measurement tool that is used under Linux. It uses fork () to simulate multiple clients accessing the URL we set at the same time, testing the performance of the site under pressure, and simulating up to 30,000 concurrent connections to test the load capacity of the site. Webbench use C language, code is too concise, the source add up to less than 600 lines.
Download Link: http://home.tiscali.cz/~cz21055
For the installation and deployment of Ubuntu under Apache, refer to the previous articles.
Today, we mainly introduce the deployment of multiple Web projects under one server through Apache.
Idea: Using the same IP, using different ports, to map to different projects
The main need to change the following three configuration points:
1. Modify the prot.conf file under/etc/apache
Add one more port for monito
Tags: jobs macwindowcontentsep atl database application plug-in feature Generation of database table design, generation of SQL statements, generation of database projects, generation of MySQL database First, training purposes through comprehensive training to further consolidate and deepen the basic knowledge and skills of database management and development of students, so that students master the basic SQL scripting specifications, Develop goo
Scenario: SharePoint Projects (other types of items are the same), the database was created with EF (version: 6.0.0.0), the production environment is already in use, so subsequent modifications to the database can only be achieved by updating.Here's how to do it:1. Visual Studio opens the project and opens the package management console.How to: View--Other Windows--Package management Console2, the project "References" in the EntityFramework.SqlServer.
Introduction to the best open source projects of VC ++ and MFC: introduce the best open source projects written with VC ++/mfc. Sourceforge.net has many high-quality VC ++ open-source projects. I have listed some projects that can be used as a reference for VC ++ programmers.
Body:Sudhir Mangla
Conversion from: the bes
ProjectsHighlight My directory:Apache Storage directory: D:\pydj\Apache24Django Project directory: D:\pydj\mysiteOpen the Apache configuration file httpd.conf again:"C:/python36/python36.dll" "C:/python36/lib/site-packages/mod_wsgi/server/mod_wsgi.cp36-win_amd64.pyd" "c:/python36"/d:/pydj/mysite/mysite/wsgi.py# Specify the project path Wsgipythonpath D:/pydj/MySite Require all grantedThe above path, please modify according to your actual situation.Open a settings.py file to add:= [' 127.0.
" depends= " clean,compile " > NBSP; dir= " ${jar.dir} " /> NBSP; destfile= " ${jar.dir}/${ Ant.project.name}.jar " basedir= " ${bin.dir} " /> You only need to replace the project name, such as memcached, and the resulting jar is Memcached.jar. The basic process of the jar target: 1) clean , clear the original bin and Span style= "font-family: ' Times New Roman '" >out directory, i.e. delete .class and .jar file 2) compile , using classpath Reference co
because SVN is used to it, asset server is still charged, so this version uses SVN to manage the Unity3d project . directories that require version management After creating a new unity project, it was discovered that there were many directories and files, only two of which needed to be versioned: Assets, Projectsettings. The others are automatically generated:
*.csproj,*.sln These IDE's engineering files are automatically generated;
Library, the main deposit is a local cache file
, printing takes the following example:DEBUG Server comment-defondswowzaserverlistener-onserverinit-memcached-somekey=now1398324763217Test success.Note: Log for the Wowza pluginThe logging implementation of Wowza is an Apache log4j logging tool. log4j configuration file in%wowza%/conf/log4j.properties, default configuration such as the following:Log4j.rootcategory=info, stdout, serveraccess, ServererrorSuppose we want to change the log level in some of our own definition classes in the plug-in p
1, add the configuration file to the project source directory (SRC)
mapreduce.framework.name
yarn
Read the contents of the configuration file so that the project knows to submit to the cluster to run2, package the project into the Project source directory (SRC) 3, add a sentence in Java code
Configuration conf = new Configuration();
conf.set("mapreduce.job.jar", "wc.jar");
Note: These are intended to allow the cluste
configuration of shortcut keysIntelliJ, the shortcut keys are configured in the same way under preferences in configure, only when the "KeyMap" is selected at this time. For example, as seen in:You can configure the shortcut keys at this time.Four, Mac IntelliJ idea is often used shortcut keys.The code complements CTRL + Space, which is very likely to conflict with the shortcut keys of the Mac itself. At this point it is assumed that a search box might be needed to handle this. )Delete line COM
have modified the Pom.xml file, you need to right-click the project maven4myeclipse--"Update project configuration."The console will also display the corresponding information[INFO]------------------------------------------------------------------------[INFO] BUILD Success[info]-------- ----------------------------------------------------------------[INFO] Total time:9.733 s[info] finished at: 2015-06-13t11:39:01+08:00[info] Final memory:19m/216m3. Deploying Tomcat3.1 Locate the SSH directory:
First look at the pictureProblem Description:I found an error in the code after importing the project, and I read the error message and found that the class in the project cannot be imported into the slidingmenu_library.Solve
Naturally think of the right-click Project-->properties-->android-->is Library to add slidingmenu_library by clicking Add.But the problem comes, click Add after the Discovery pop-up box does not have slidingmenu_library.
So you have to import slidingmenu_library fir
If you find the Import project (impot) , there is a "No projects is found to import" prompt,First, see if there are hidden files in the project directory. Project, as well as the directory structure, also has a hidden file. Classpath,If not, you can refer to the following methodsThe most straightforward operation, you can copy the other project's. Project,. classpath files, and modify the appropriate places.1). project file only needs to be modified 2
The project type of Java is set by a project file, which differs under different editor items.Under Eclipse is the. project file under IntelliJ, which is the project name. iml file,If you have just introduced the project in the editing of which there is no such file, it is your project is not approved by the editor of the project, a way to modify the format of the editor approved, generally through the import method will automatically add these files.When the file is in the post, you can modify
First, install the JDK under LinuxUninstall firstJava–version (view Java version information)Rpm-qa | grep Java (see if there is a Java presence)RPM-E--nodeps java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.x86_64 (uninstall the corresponding JDK)To start the installation:Mkdir/usr/local/src/javauploading a JDK tar packageTAR-XVF jdk-7u71-linux-i586.tar.gzYum Install glibc.i686To configure environment variables:① Vi/etc/profile② add at the end line#set Java EnvironmentJava_home=/usr/local/src/java/jdk1.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.