#!/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 /usr/local/apache/bin/apachectl start
#将mysql启动脚本放入所有脚本运行目录/etc/rc.d/init.d中 cp /lamp/mysql-5.0.41/support-files/mysql.server /etc/rc.d/init.d/mysqld #改变权限 chown root.root /etc/rc.d/init.d/mysqld #所有用户都可以执行,单只有root可以修改 chmod 755 /etc/rc.d/init.d/mysqld #将mysqld 放入linux启动管理体系中 chkconfig --add mysqld #查看全部服务在各运行级状态 chkconfig --list mysqld #只要运行级别3启动,其他都关闭 chkconfig --levels 245 mysqld off
chkconfig --add httpd chkconfig httpd on
echo "/usr/local/apache2/bin/apachectl start" >> /etc/rc.d/rc.sysinit
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有