- // Apache
- //Task: Start Apache 2 Server /启动apache服务
- # /etc/init.d/apache2 start
- //or
- $ sudo /etc/init.d/apache2 start
- //Task: Restart Apache 2 Server /重启apache服务
- # /etc/init.d/apache2 restart
- //or
- $ sudo /etc/init.d/apache2 restart
- //Task: Stop Apache 2 Server /停止apache服务
- # /etc/init.d/apache2 stop
- //or
- $ sudo /etc/init.d/apache2 stop
查看 apache2命令
sudo /etc/init.d/apache2 -t
cd / 是进入到根目录
apt安装nginx方法
sudo apt-add-repository ppa:nginx/development
sudo apt-get update
sudo apt-get install nginx
apt卸载nginx方法
卸载方法1.
# 删除nginx,保留配置文件
sudo apt-get remove nginx
#删除配置文件
rm -rf /etc/nginx
卸载方法2.
#删除nginx连带配置文件
sudo apt-get purge nginx # Removes everything.
#卸载不再需要的nginx依赖程序
sudo apt-get autoremove
service nginx start
/etc/nginx/sites-available/default
#
pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
#
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
/usr/lib/php5/20121212
515

被折叠的 条评论
为什么被折叠?



