Hustoj LiveCD版系统root、数据库root及oj管理员密码的修改
来源:互联网 发布:手机网络异常怎么办 编辑:程序博客网 时间:2024/06/10 01:22
一、安装Hustoj LiveCD版
下载地址: https://code.google.com/p/hustoj/downloads/list
二、安装好后,开机进入系统
初始账户为root,密码为freeproblemset。安装过程中所设置的账户和密码无效。
三、进入系统
1、启动Firefox访问http://127.0.0.1/可进入OJ界面。(或者http://localhost/ 两者一样)端口号为80.
2、运行ifconfig查得IP后,其他电脑可通过网络访问。
3、OJ管理员admin初始密码为admin.
四、密码的修改
1、系统root密码的修改。
在root权限下,终端输入 passwd root。 然后提示输入新密码,确认新 密码。OK
2、MySQL密码的修改
过程:
1、关闭mysql。
[root@localhost ~]#service mysql stop
Stopping MySQL: [ OK ]
2、跳过授权表启动mysql,关闭网络监听,让其后台运行或者开个新终端。
[root@localhost ~]#mysqld_safe --skip-grant-tables --skip-networking
Starting mysqld daemon with databases from /var/lib/mysql
提示:此时按下CTRL-Z
[1]+ Stopped mysqld_safe --skip-grant-tables --skip-networking
[root@localhost ~]#bg
[1]+ mysqld_safe --skip-grant-tables --skip-networking &
3、链接mysql服务器。
[root@localhost ~]#mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.0.77 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
4、使用mysql数据库。
mysql>use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
5、设置root新密码。
mysql>update user set password=password('123') where user='root';
Query OK, 3 rows affected (0.01 sec)
Rows matched: 3 Changed: 3 Warnings: 0
6、退出mysql。
mysql>quit;
Bye
7、重启mysql.
或者参考博客:http://blog.sina.com.cn/s/blog_538f130c01016svy.html
3、配置文件的修改
修改db_info.inc.php文件,位置在:/var/www/JudgeOnline/include/
修改judge.conf文件,位置在: /home/judge/etc/
关于配置信息,可参考张老师的博客。 网址:http://blog.csdn.net/zhblue/article/details/7366194
4、OJ管理员密码的修改。
先用原始的密码登陆上去,然后点击左边的修改密码即可。
现在,你可以尝试用你自己所设置的密码登陆OJ了。本人也是摸索了好几天,查找了不少资源才搞定的。 如有不对的地方,请高手指出。也请搭建过hustoj
的给出一点指导意见。
附:hustoj开源项目的网址:https://code.google.com/p/hustoj/
- Hustoj LiveCD版系统root、数据库root及oj管理员密码的修改
- 修改数据库的root密码
- mysql修改root密码及root密码忘记的解决办法
- 修改mysql数据库root用户的密码
- 修改mysql 数据库root密码的方法
- 修改linux系统的root密码
- Redhat系统Root密码的修改
- 【XAMPP】mysql数据库忘记管理员root密码
- 修改MySql数据库Root密码
- 修改MySQL数据库Root密码
- 修改mysql数据库root密码
- Debian系统root密码修改
- Linux系统root密码修改
- 修改linux系统root密码
- 修改Ubuntu系统root密码
- MySQL修改root密码及丢失密码的解决方法
- 修改MYSQL数据库root密码(忘记root密码)
- mysql修改连接密码及root密码
- (void)fprintf 里面的(void)有什么作用
- USBCAN转串口(UART)在PC上调试
- ASSIC码对照表
- Web2.0-WebService博文计划
- HDU 2202 求最大三角形
- Hustoj LiveCD版系统root、数据库root及oj管理员密码的修改
- [转]Object Oriented Design Principles
- MFC通过获取菜单句柄,实现菜单的基本操作
- Android 指定纯色图标的颜色
- 众多Android 开源项目推荐
- Linux内核网络协议栈2-socket从库函数到内核
- [C++ 2011 STL (VS2012 Update4) 源代码阅读系列(2)]熟悉一些宏定义和模版偏特化或叫模版专门化
- Unity3D 破解版安装环境详细图解
- 用NuGet管理好你的包包