我来分享个好软件
Tofloor
poster avatar
Dengshuangjang
deepin
2014-06-11 06:16
Author
要建立服务器的同志们,这或许是你想要的,操作过程如下:

用Linux作WEB服务器
  采用nginx建立个人网站只有三步:
  1、卸载apache,安装nginx并启动服务:
  
  sudo apt-get purge apache2*
  sudo apt-get autoremove
  
  sudo apt-get install nginx
  sudo service nginx start
  
  实验: 浏览器地址栏输入: http://localhost
  
  2、修改配置:
  sudo gedit /etc/nginx/nginx.conf
  把worker_processes设置成你的CPU数目,如1,2,4等;
  sudo gedit /etc/nginx/sites-available/default,修改:
  server {
    listen 80 default_server;      
    root /usr/share/nginx/html;      #修改为你的网站目录,如: /webServer/main
    index index.php index.html index.htm;
  }
  
  3、重启服务:sudo service nginx restart
Reply Favorite View the author
All Replies
pyfx2008
deepin
2014-06-26 01:04
#1
这个能用来从事php开发吗,有没有更详细一点的教程
Reply View the author
usen68
deepin
2014-06-26 03:28
#2
这个能用来从事php开发吗,有没有更详细一点的教程
当然可以啦哈

俺已经在公司内网开发了一个网站应用来分享资料啦

Nginx+PHP+SQLITE3实现的
Reply View the author
不避风云
deepin
2015-06-25 16:18
#3
apache, 比如xampp也差不多如此简单。
Reply View the author