服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. centos linux
  3. 如何在启动.sh脚本上运行
Intereting Posts
无法连接到MySQL使用本地主机,但使用“127.0.0.1”没关系? 内部caching服务器的设置步骤 Exchange 2010非现场归档,Active Directory Server 2003工作stream程选项 作为下载镜像或库主机有什么价值? Memcached问题“无法侦听TCP端口11211” Nginx的redirect循环 使用WordPress,Microsoft Azure和IIS在PHP_MINIT_FUNCTION(Wincache)中失败 托pipe的Kerio邮件服务器与托pipe交换 转矩工作不进入“E”状态(除非“qrun”) 如何使用boto将标签添加到自动缩放的EC2实例? IIS HTTPS主机头 通过反向代理直接访问文件 在bash中运行命令,而不保存在历史logging中 比较两台不同服务器上安装的Windows 2012服务器操作系统的差异 Windows Server 2008 R2源IP

如何在启动.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