可能我的职业生涯里,就只写过两个程序。一个是为了贵州铝厂写的蒸发器故障诊断系统,一个是为了小猫漪漪写的剑侠情缘自动练级打怪合成玄晶自动交易系统。
要说开发网站,还是在1999年开发网上解放碑的时候。现在的技术和当时的技术没有任何相似之处,基本上是推倒重来了。
********************************************
为了Clarity,最近重起炉灶。过程如下:
先去GoDaddy买了一个域名,第一年只要0.99美元。然后顺手从GoDaddy的DNS指向我的VPS,也是0.99美元,但是月付。
然后上cloud.atlantic.net, 重做了系统为debian 8.3。
SSH上去,先在/etc/apt/sources.list 里加上一行:
deb http://ftp.debian.org/debian jessie-backports main
然后 apt-get update.
接着就装LAMP,全部缺省配置。
然后去
https://certbot.eff.org/#debianjessie-apache
选择debian+apache 的免费https认证服务。
接下来,安装vsftpd.
创建一个ftp账号:eddy
在home/eddy下, mkdir html
mount –bind /var/www/html /home/eddy/html
修改vsftpd的配置文件,获得写权限。
****************************************************
安装 aptana.
创建一个connection, 连接FTP服务器。可以直接上传下载文件到服务器。
我的愉快生活开始了。
***********************************
Create a user for Mark, and add www-data as his default group:
<pre class="code-pre ">```
sudo adduser mark
answer all the questions, give a password, etc. Now you have a user named Mark, and there should be a new directory created in /home/mark
Next, lets change marks default group:
``` sudo usermod mark -g www-data ``` ``` So now mark is a primary member of the www-data gang. You can check that with: `````` id mark ``` ``` Now lets add a symlink to marks home folder that will get him to his web-folder. Let’s say his web-folder is: /var/www/marksite.com `````` sudo ln -s /var/www/marksite.com /home/mark/marksite.com ``` ``` Now mark will have a folder (actually a symlink) in his home directory that will take him straight to his web-folder. Since mark is a member of www-data, he should have full access to his files.