Linux [my OS is CentOS 4.2] 下 让apache,postgresql 随机自启动



在etc/rc.d/rc.local文件中加入如下
#apache2 auto start
/usr/local/apache2/bin/httpd -k start
#postgresql auto start
su - postgres -c "/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data -S -i"
#tomcat5 auto start
su - tomcat -c /opt/tomcat5/bin/startup.sh


#notice:
#你可能需要执行chmod -R 777 /opt/tomcat5/logs/赋与tomcat用户在logs下的读写权限。

相关文章:

  • 2021-06-04
  • 2021-10-14
  • 2022-01-01
  • 2021-11-30
  • 2021-05-17
  • 2021-11-08
  • 2021-11-20
  • 2022-12-23
猜你喜欢
  • 2021-09-10
  • 2021-08-17
  • 2022-12-23
  • 2022-12-23
  • 2021-07-22
  • 2022-12-23
相关资源
相似解决方案