1.top 查看内存、cpu、进程
2.netstas 查看端口信息
find / -name 最近找不到my.cnf,可以用这个命令:
find / -name my.cnf 结果: /etc/mysql/my.cnf
增加普通用户后,执行: mysql> use mysql mysql> delete from user where user=''; mysql> flush privileges; 意思是删除匿名用户。
建立表:
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.