I want upgrade ojs 2.4.8 to 3.1.2 in localhost. How run upgrade by command line? how and where write?
You will need shell access to use the command line. This is often available via SSH or a console tool. Once you have shell access, you will need to navigate through the filesystem to your OJS installation directory, and then execute the upgrade script, preferably as your web user.