ubuntu下安装lamp,postgres,mail,svn等
amp环境:
sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server -y
安装postgres:
sudo apt-get install php5-pgsql
sudo dpkg-reconfigure php5-pgsql
psql -U postgres -w -c "ALTER USER pguser with PASSWORD 'pgpass'" -d pgdb
安装svn:
sudo apt-get install subversion
sudo svn export svn_url_path --username username --password password
安装截图和截视频软件
sudo apt-get install imagemagick
sudo apt-get install ffmpeg
安装mail插件:
sudo apt-get install mailutils
php -r "mail(\"example@maildomain.com\", \"My Subject\",\"Hello World!\" );"
安装ssh:
apt-get install openssh-server