当前位置首页 > Ubuntu知识

Ubuntu常用软件自动安装脚本

阅读次数:332 次  来源:admin  发布时间:

Ubuntu常用软件安装脚本,收集了开发常用的一些软件。

以下代码复制后,另存为installDev.sh文件后,需要设置权限为777

执行sudo ./installDev即可。

#! /bin/bash
#echo "hello,world!"

#安装php和MySQL
sudo apt-get -y install php5-cli php5-cgi mysql-server php5-mysql php5-dev

sudo apt-get -y install nginx
sudo apt-get -y install php5-fpm
sudo apt-get -y install php5-memcache
sudo apt-get -y install php5-mcrypt
sudo apt-get -y install php5-curl
sudo apt-get -y install php5-gd

#安装pecl 
sudo apt-get -y install php-pear

#安装redis
sudo pecl -y install redis
sudo apt-get -y install php5-redis
sudo apt-get -y install redis-tools
sudo apt-get -y install redis-server

#安装memcached
sudo apt-get -y install memcached

#安装mcrypt
sudo apt-get -y install mcrypt 
sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available
sudo php5enmod mcrypt

#安装jdk
sudo apt-get -y install openjdk-8-jdk

#安装phpunit
sudo apt-get -y install phpunit

#安装hg
sudo apt-get -y install mercurial

#安装svn
sudo apt-get -y install subversion

#安装uget
sudo apt-get -y install uget

#安装 flash player
sudo apt-get -y install flashplugin-installer

#安装curl
sudo apt-get -y install curl
curl -s http://getcomposer.org/installer | php

#安装rar
sudo apt-get -y install unrar rar

#安装ftp
sudo apt-get -y install filezilla

#安装mysql-workbench
sudo apt-get -y install mysql-workbench

#重启php-fpm、nginx
sudo /etc/init.d/php5-fpm restart
sudo /etc/init.d/nginx restart
上一篇:Linux——环境变量的文件及配置
下一篇:用Debian当路由,来解决BT造成的网络慢的问题