CentOS 設定 ogg mgr 開機自啟

2021-09-23 23:54:11 字數 1002 閱讀 4792

試驗環境:

試驗環境

軟體版本

作業系統

centos 7

ogg安裝目錄

/home/oracle/ggs

資料庫oracle

// 建立 info.txt 檔案

[oracle@custom04 ~]$ touch info.txt

// 編輯 info.txt 檔案

[oracle@custom04 ~]$ nano info.txt

[oracle@custom04 ~]$ chmod +x info.txt

新增配置:

sh date

start mgr

// 建立 info.txt 檔案

[oracle@custom04 ~]$ touch startmgr.sh

// 編輯 info.txt 檔案

[oracle@custom04 ~]$ nano startmgr.sh

[oracle@custom04 ~]$ chmod +x startmgr.sh

新增配置:

/home/oracle/ggs/ggsci paramfile /home/oracle/info.txt >> /home/oracle/ggstartoutput.txt

[root@custom04 etc]# nano rc.local
新增配置:

su - oracle -c 「/home/oracle/startmgr.sh」

停止 mgr 程序

用root使用者執行:su - oracle -c 「/home/oracle/startmgr.sh」

檢視 mgr 程序是否啟動

Centos7設定keepAlived開機自啟動

1.安裝依賴包 openssl yum install openssl 2.安裝依賴包openssl devel yum y install openssl devel 3.安裝keepalived a.將安裝包keepalived 2.0.18.tar.gz上傳到 usr local目錄 b.依次...

centos7 6安裝tomcat 並設定開機自啟

wget解壓 tar zxvf apcahe tomcat 9.0.21.tar.gzmv apache tomcat 9.0.21 usr local tomcat啟動 usr local tomcat bin startup.sh新建tomcat.service文件 vim etc system...

CentOS7下Redis的安裝和設定開機啟動

以下命令預設都是在root許可權下執行 wget tar xvzf redis 5.0.2.tar.gz cd redis 5.0.2 make 編譯 make install redis cli redis server等執行檔案會拷貝到 usr local bin 成功安裝完成後可以在任意目錄執...