zoukankan      html  css  js  c++  java
  • 服务器环境搭建脚本

    yum -y install wget screen curl python #for CentOS/Redhat
    # apt-get -y install wget screen curl python #for Debian/Ubuntu
    wget http://aliyun-oss.linuxeye.com/oneinstack-full.tar.gz #阿里云经典网络下载
    wget http://mirrors.linuxeye.com/oneinstack-full.tar.gz #包含源码,国内外均可下载
    wget http://mirrors.linuxeye.com/oneinstack.tar.gz #不包含源码,建议仅国外主机下载
    tar xzf oneinstack-full.tar.gz
    cd oneinstack #如果需要修改目录(安装、数据存储、Nginx日志),请修改options.conf文件
    screen -S oneinstack #如果网路出现中断,可以执行命令`screen -R oneinstack`重新连接安装窗口
    ./install.sh #注:请勿sh install.sh或者bash install.sh这样执行

    如何添加附加组件?

    如何管理服务?

    Nginx/Tengine/OpenResty:

    service nginx {start|stop|status|restart|reload|configtest}

    MySQL/MariaDB/Percona:

    service mysqld {start|stop|restart|reload|status}

    PHP:

    service php-fpm {start|stop|restart|reload|status}

    HHVM:

    service supervisord {start|stop|status|restart|reload}

    注:hhvm进程交给supervisord管理,了解更多请访问《Supervisor管理hhvm进程
    Apache:

    service httpd {start|restart|stop}

    Tomcat:

    service tomcat {start|stop|status|restart}

    Pure-Ftpd:

    service pureftpd {start|stop|restart|status}

    Redis:

    service redis-server {start|stop|status|restart|reload}

    Memcached:

    service memcached {start|stop|status|restart|reload}

    如何更新版本?

    ./upgrade.sh

    《安装》

    如何卸载?

    ./uninstall.sh

    《安装》

    
    
  • 相关阅读:
    CVS使用经验谈(zz from chinaunix.net)
    登黄山
    登黄山之二
    Dennis Ritchie 去世
    观迎客松
    从程序员角度看ELF
    再次回到这里
    异步时钟下跨时钟域信号处理
    Fedora14下的Novas和Synopsys
    Oralce导入\导出
  • 原文地址:https://www.cnblogs.com/grimm/p/8063968.html
Copyright © 2011-2022 走看看