hustoj LiveCD版系统局域网虚拟机安装配置 修改数据管理员密码

本文详细介绍了如何安装和配置HustojLiveCD系统,包括使用root账户登录,修改root和MySQL的密码,以及如何通过网络访问OJ界面。同时,提到了OJ管理员密码的修改方法和涉及的配置文件变更。
摘要由CSDN通过智能技术生成

一、安装Hustoj LiveCD版

二、安装好后,开机进入系统

初始账户为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.

3、配置文件的修改

修改db_info.inc.php文件,位置在:/var/www/JudgeOnline/include/

修改judge.conf文件,位置在: /home/judge/etc/

4、OJ管理员密码的修改。

先用原始的密码登陆上去,然后点击左边的修改密码即可。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

星卯教育tony

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值