服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. centos linux
  3. 如何在启动.sh脚本上运行
Intereting Posts
为特定用户使用BGInfo 我在哪里可以获得AS / 400 Client Access Express for Windows软件? NagEL Selinux上的RHEL7 equivelant上下文 基于主机头的SSL证书select:有可能吗? 如何更改Web Farm Framework(WFF)控制器服务器? sudo apt-get install -d zsh。 无法find它下载的文件 如何通过端口443处理多个应用程序 Apache HTTPD mod_rewrite规则将特定pathredirect到Tomcat Worker(AJP) VPS路由 – 超过1kb的数据包超时 我应该使用什么redirect规则来replace这个301redirect,在Apache? 虚拟实验室/testing台架构的最佳实践是什么? 与SIP提供商通过代理星号对等 CloudFlare SSLredirect循环 使用OS X Server Profile Manager进行iPad应用程序设置? 在扩展磁盘上一个分区的空间时遇到问题

如何在启动.sh脚本上运行

可能重复:
如何在启动时运行shell脚本(启动)

我有.sh脚本来运行我的游戏服务器与单声道。 我需要在启动时运行这个命令

sh script.sh start 

怎么样?

  • 在MySQL 5.5中创build超级用户不起作用:root @ localhost的权限被拒绝
  • SSHFS启动CentOS 6.3
  • 添加一个斜杠mod_rewrite
  • 从PHP运行adb
  • 了解lshw输出

  • yum安全更新 – 指示内核版本不是最新的消息
  • 硬件RAID在CentOS 6.2
  • 编译php 5.4 curl安装
  • 移动服务器,但保留较旧版本的PHP,Apache等
  • WIldcard SSL子域不指向正确的DocumentRoot

把它放到/etc/rc.local :

 #!/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. sh /path/to/script.sh start 

或者在具有特殊激活参数的cron作业中:

 crontab -e @reboot /path/to/script.sh start 
  • Apache会logging每个请求吗?
  • USB密钥在Centos 6中传递密码
  • 内核启动问题
  • 使用iptables进行端口范围从硬件节点到VZ容器的一对一映射
  • 在CakePHP的用户所有权下创build文件夹和文件
  • Apache坚持要在CentOS上启动
  • Memcached – 我安装在centOS上,并运行。 它会自动运行时,我重新启动?
  • 在CentOS 6.3中实际上称为logrotate的是什么?
  • Raid 10 – 很慢
  • 有一个服务器发行版能够将实时数据同步到多台机器吗?

  • © 2017 服务器 Gind.cn
  • Topics
  •        
  • Powered by Server
  • Privacy Policy