software for ubuntu
Yakuake
是一个KDE的下拉式终端软件。与Kate、KDevelop和Konqueror一样,
Yakuake通过KParts,使用Konsole的技术来提供终端。
Java代码
apt-get install yakuake
安装git
Java代码
sudo apt-get install git
安装zsh
Java代码
sudo apt-get install zsh
配置zsh
下载 oh-my-zsh
Java代码
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
Java代码
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
改成预设使用 zsh
Java代码
chsh -s /bin/zsh
安装lamp环境
Java代码
sudo apt-get install nginx php5-fpm php5 php5-memcached php5-memcache php5-mongo php5-xdebug php5-mysql memcached mongodb mysql-server mysql-clent
lamp环境配置
1.在/etc/nginx/conf.d/加入配置文件test.conf
文件内容
Java代码
server {
listen 80;
server_name www.test.com;
server_tokens off;
autoindex on;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /home/wrj/workspaces/test;
#index index.php index.html;
#include /home/wrj/workspaces/php/aerie/.nginxaccess;
}
location ~* /.php {
fastcgi_pass unix:/var/run/php-fpm.sock;
#/php-fpm.sock路径要与 /etc/php5/fpm/pool.d/www.conf中的listen = /var/run/php-fpm.sock 路径相同
include fastcgi_params;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+/.php)(.*)$;
fastcgi_param SCRIPT_FILENAME /home/wrj/workspaces/test$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_buffers 8 128k;
fastcgi_connect_timeout 300s;
fastcgi_send_timeout 300s;
fastcgi_read_timeout 300s;
fastcgi_buffer_size 128k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
fastcgi_intercept_errors on;
}
location ~ //.nginxaccess {
deny all;
}
}
重启 php-fpm
Java代码
sudo service php5-fpm restart