Normal user launches Tomcat

Source: Internet
Author: User

First, create the start user and directory permissions

[Email protected] ~]# Useradd user

[[email protected] ~]# passwd User (passwd)

Use root shutdown

Chown-r user/tomcat (front user name, followed by directory)

chmod U+x/tomcat


Su-user

Then go to the relevant bin directory and start.


Two

SU Switch to User report Unable to set User ID: Resource temporarily unavailable error

The problem is: under the/ETC/SECURITY/LIMITS.D directory, rhel6 and CENTOS6 have a few more files: 90-nproc.config

The contents of this file:

# Default limit for number of user ' s processes to prevent

# Accidental fork bombs.

# See RHBZ #432903 for reasoning.


* Soft Nproc 1024


The limit is 1024, note or 1024 value is changed, save exit, immediate effect, and then try Su to user, problem solving. But why add this file, not clear, there is this directory on Rhel 5, but there is no this file

Of course, your/etc/security/limits.conf configuration of the user allowed to open the file handle number is not too small, right?


Cat/etc/security/limits.conf


User Soft Nproc 4094

User Hard Nproc 32768

User Soft Nofile 2048

User Hard Nofile 131072


You can also use Ulimit–a to view related configurations


Normal user launches Tomcat

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.