In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
When installing oracle, when you create oracle users and switch oracle users, if you report an error [root@localhost ~] # su-oracle-bash: ulimit: max user processes: cannot modify limit: Operation not permitted forgot to modify / etc/security/limits.conf about / etc/security/limits.conf explanation and application, see I reprint the following article limits.conf format is as follows: username | @ groupname type resource limitusername | @ groupname: set the user name that needs to be restricted. The group name is preceded by @ and distinguished by the user name. You can also use the wildcard character * to restrict all users. Type: there are soft,hard and -, and soft refers to the setting for which the current system is in effect. Hard indicates the maximum value that can be set in the system. The limit of soft cannot be higher than the limit of har. Using-indicates that both soft and hard values are set. Resource:core-limit kernel file size date-maximum big data size fsize-maximum file size memlock-maximum locked memory address space nofile-maximum number of open files rss-maximum persistent setting size stack-maximum stack size cpu-maximum CPU time in minutes noproc-maximum number of processes as-address space limit maxlogins-this user is allowed to log in The maximum number for the limits.conf file configuration to take effect You must make sure that the pam_limits.so file is added to the startup file. Check out the / etc/pam.d/login file as follows: session required / lib/security/pam_limits.so temporarily, applicable during a shell session logged in through the ulimit command. Permanently, by adding a corresponding ulimit statement to one of the files read by the login shell (for example, ~ / .profile), that is, the shell-specific user resource file, or by editing / etc/security/limits.conf. What is a core file? when a program crashes, the stored image of the process is copied in the core file in the process's current working directory. The core file is just a memory image (plus debugging information) and is mainly used for debugging. The core file is a binary file, and you need to use the appropriate tools to analyze the memory image when the program crashes. The default size of the core file is 0, so it is not created. You can view and modify the size of the core file with the ulimit command. $ulimit-c0 $ulimit-c1000 $ulimit-c1000murc specifies the size of the modified core file, and 1000 specifies the core file size. There can also be no restrictions on the size of the core file, such as: # ulimit-cunlimited # ulimit-cunlimited if you want the changes to take effect permanently, you need to modify the configuration file, such as .bash _ profile, / etc/profile, or / etc/security/limits.conf. 2.nofile-maximum number of open files for applications that need to make many socket connections and keep them open, it is best to use ulimit-n or by setting the nofile parameter Set the number of file descriptors higher than the default value for the user vi / etc/security/limits.conf * soft nofile 10240 # soft limit * hard nofile 10240 # hard limit modified with ulimit-n 2048 only valid for the current shell, invalid after exit: if A program is already running, ulimit-n is 1024 Then ulimit-n 2048, when the B program is running Quit the current shell user, shell again, and then run the C program; at this time, only the B program uses 2048, and the others use 1024 [root@localhost ~] # vim / etc/security/limits.conf to add the following content: oracle soft nproc 2047 oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536 problem is solved.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.