命令如下:zip -r %%.zip ./
find / -name 最近找不到my.cnf,可以用这个命令:
find / -name my.cnf 结果: /etc/mysql/my.cnf
建立表:
CREATE TABLE IF NOT EXISTS `postdata` ( `id` int(11) NOT NULL auto_increment, `city` varchar(255), `time` varchar(255), `code` varchar(255), `school` varchar(255), `pay` varchar(255), `state` varchar(255), `updatetime` datetime PRIMARY KEY (`code`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
joomla上安装sobipro时,需要curl库的扩展支持,安装命令如下:
sudo apt-get install curl libcurl3 libcurl3-dev php5-curl
I’ve been using Linode for a few months to host about a dozen websites and I’ve been very happy with the experience. I have found the documentation at Linode to be clear and concise, especially when it comes to setting up multiple sites using a standard, Ubuntu-based LAMP (Linux, Apache, MySQL, PHP) configuration.
重新安装gd库:apt-get install php5-gd 不起作用的话,更新过后再安装gd库:apt-get update,重启:service apache2 restart OK。
cron是一个Linux下的后台进程,用来定期的执行一些任务。因为我用的是Ubuntu,所以这篇文章中的所有命令也只能保证在Ubuntu下有效,但其他系统应该也差不多。
putty登录vps,输入命令:
chown -R www-data /srv/www/domain.com/
其中 www-data 是你的linux user
我的是ubuntu11.0,如果你的系统不一样或者改动过的话,可能需要把www-data换成www试试
Apache的rewrite模块,提供了一个基于规则的重写(rewrite,也许译为重构更为合适)引擎,来实时重写发送到Apache的请求URL。因功能极其强大,被称为URL重写的“瑞士军刀”。
在 Ubuntu 中可以使用下面的方法来开启Mod_rewrite 模块。