摘要:在gcc 4.0.3上,下面这段代码会产生invalid use of constructor as a template的编译错误 template class handle_t { inline handle_t(const handle_t& another); }; template handle_t::handle_t(const handle_t& another) { }...
阅读全文
11 2007 档案
摘要:安装apache: $ sudo apt-get install apache2 然后访问http://hostname/确认安装成功. 让apache支持ssl: $ sudo apache2-ssl-certificate $ cd /etc/apache2/ $ sudo cp sites-available/default sites-available/ssl $ sudo ln -s...
阅读全文
摘要:运行一下命令安装mysql. $ sudo apt-get install mysql-server 设置root密码: $ sudo /etc/init.d/mysql reset-password 让root可以远程登陆: 登陆mysql控制台,然后运行: mysql> use mysql; mysql> update `user` set `host`="localhost" and `...
阅读全文
摘要:$ sudo apt-get install nagios-text $ sudo htpasswd -c /etc/nagios/htpasswd.users nagiosadmin 然后按提示输入密码. 用户名nagiosadmin及输入的密码即为登陆http://hostname/nagios/的用户名和密码.
阅读全文
浙公网安备 33010602011771号