Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
我来分享个好软件
Apps Section
1724
views ·
3
replies ·
To
floor
Go
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
Like 0
Favorite
View the author
All Replies
pyfx2008
deepin
2014-06-26 01:04
#1
这个能用来从事php开发吗,有没有更详细一点的教程
Reply
Like 0
View the author
usen68
deepin
2014-06-26 03:28
#2
这个能用来从事php开发吗,有没有更详细一点的教程
当然可以啦哈
俺已经在公司内网开发了一个网站应用来分享资料啦
Nginx+PHP+SQLITE3实现的
Reply
Like 0
View the author
不避风云
deepin
2015-06-25 16:18
#3
apache, 比如xampp也差不多如此简单。
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
the Network section no longer appears
Error during system installation
Deepin IDE?
Music player with sample rate and bit depth
Popular Events
More
用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