linux POST

525 ワード

linux起動方法の設定:1.rootユーザー2に切り替えます.vi/etc/rc.d/rc.localは、redisなどの実行するコマンドを追加し、ファイルに起動コマンドを追加して保存することで、次回の起動時に有効になります.
と書く
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch/var/lock/subsys/local
...../nexus start
 
3.直ちに実行する場合は/etc/rcを実行する.d/rc.localでいいです.
[root@localhost ~]# /etc/rc.d/rc.local