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