-bash: ulimit: max user processes: cannot modify limit: Operation not permitted問題的處理
在安裝oracle的時候,在/etc/profile下設定了
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
但是su - oracle時發現:
-bash: ulimit: max user processes: cannot modify limit: Operation not permitted問題
原來是在/etc/security/limits.conf下設定了:
oracle soft nproc 2047
oracle hard nproc 16348
oracle soft nofile 1024
oracle hard nofile 65536
oracle hard nproc 16348
oracle soft nofile 1024
oracle hard nofile 65536
在這個檔案裡設定了限制,那麼在別的地方設定的限制將不能超過這裡設定的值!
[@more@]看一下/etc/security/limits.conf你大概就會明白
linux對使用者有預設的ulimit限制,而這個檔案可以配置使用者的硬配置和軟配置,硬配置是個上限。
超出上限的修改就會出“不允許的操作”這樣的錯誤。
要麼去掉限制,要麼加大限制即可!
linux對使用者有預設的ulimit限制,而這個檔案可以配置使用者的硬配置和軟配置,硬配置是個上限。
超出上限的修改就會出“不允許的操作”這樣的錯誤。
要麼去掉限制,要麼加大限制即可!
總結:
如果你碰到類似的錯誤提示:
ulimit: max user processes: cannot modify limit: 不允許的操作
ulimit: open files: cannot modify limit: 不允許的操作
為啥root使用者是可以的?普通使用者又會遇到這樣的問題?
看一下/etc/security/limits.conf大概就會明白。
linux對使用者有預設的ulimit限制,而這個檔案可以配置使用者的硬配置和軟配置,硬配置是個上限。
超出上限的修改就會出“不允許的操作”這樣的錯誤。
在limits.conf加上
soft noproc 10240
hard noproc 10240
soft nofile 10240
hard nofile 10240
就是限制了任意使用者的最大執行緒數和檔案數為10240。
ulimit: max user processes: cannot modify limit: 不允許的操作
ulimit: open files: cannot modify limit: 不允許的操作
為啥root使用者是可以的?普通使用者又會遇到這樣的問題?
看一下/etc/security/limits.conf大概就會明白。
linux對使用者有預設的ulimit限制,而這個檔案可以配置使用者的硬配置和軟配置,硬配置是個上限。
超出上限的修改就會出“不允許的操作”這樣的錯誤。
在limits.conf加上
soft noproc 10240
hard noproc 10240
soft nofile 10240
hard nofile 10240
就是限制了任意使用者的最大執行緒數和檔案數為10240。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7916042/viewspace-1036737/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- -bash: ulimit: open files: cannot modify limit: Operation not permittedMIT
- ulimit: core file size: cannot modify limit: Operation not permittedMIT
- 關於 CentOS 7 裡面 普通使用者 Ulimit max user processes 值的問題CentOSMIT
- suse linux 10_su - oracle報ulimit錯誤-cannot modify limit:LinuxOracleMIT
- cygwin 多使用者 /bin/bash: Operation not permittedMIT
- chown: /usr/local: Operation not permitted問題解決MIT
- linux動態修改 max user processes limitsLinuxMIT
- macOS: sudo : Operation not permittedMacMIT
- NFS mount results in "vmount: operation not permitted" errorNFSMITError
- Mac 配置Maven遇到的zsh:operation not permitted:mvnMacMavenMIT
- db_writer_processes-log_archive_max_processesHive
- drop user 報ORA-03113 問題處理
- ORA-27300 OS system dependent operation:if_not_found 問題處理
- 【問題處理】啟動OUI丟擲libXp.so.6: cannot open shared object file問題處理UIObject
- Solaris 10’s Resource Management and Shell Limit(ulimit)MIT
- Failed to get D-Bus connection: Operation not permittedAIMIT
- 【問題處理】ORA-00376 file xx cannot be read at this time
- CRS-0184: Cannot communicate with the CRS daemon. 問題處理
- 安裝pods提示Operation not permitted usr bin xcodeprojMITXCode
- windows下安裝kibana出 "EPERM: operation not permittedWindowsMIT
- bundler安裝失敗,Operation not permitted - /usr/bin/***MIT
- bash時間處理
- Overview of User Processes (109)View
- 處理問題的方法
- xml處理的問題XML
- linux登入locale告警-bash: warning: setlocale: LC_TIME: cannot change的處理方法Linux
- 使用npm install報錯-4048 operation not permitted解決NPMMIT
- 【問題處理】Error accessing PRODUCT_USER_PROFILE錯誤一例Error
- tidb Error: Operation aborted by user answer '' (cliutil.operation_aborted)TiDBError
- ORA-01618: redo thread 2 is not enabled - cannot mount 問題處理thread
- mysql的處理能力問題MySql
- [HP-UX] cannot fork: too many processesUX
- MYSQL 5.6 5.7處理資料分佈不均的問題(eq_range_index_dive_limit引數)MySqlIndexMIT
- POJ 2443Set Operation(好題! 每32位壓縮處理)
- maridb Error 'Operation DROP USER failed forErrorAI
- Enable ISM Server User operation AuditingServer
- Bash 指令碼中的錯誤處理指令碼
- 處理Apache日誌的Bash指令碼Apache指令碼