command line options added to readme

pull/5/head
moneroexamples 7 years ago
parent 4cc9fc2d5b
commit 7c20bdc8de

@ -92,7 +92,6 @@ make
#### Mysql/Mariadb
```bash
sudo apt update
sudo apt install mysql-server
sudo mysql_secure_installation
```
@ -113,14 +112,58 @@ mysql -p -u root < ../sql/openmonero.sql
```bash
sudo apt-get install lighttpd
```
Assuming we are still in `build` folder, copy frontend source files into lighttpd www folder.
Assuming you are still in `build` folder, copy frontend source files into lighttpd www folder.
```bash
sudo cp -rvf ../html/ /var/www/html
sudo mkdir /var/www/html/openmonero
sudo cp -rvf ../html/* /var/www/html/openmonero/
```
Setup document root in `lighttpd.conf` into openmonero folder
```bash
sudo vim /etc/lighttpd/lighttpd.conf
```
and change `server.document-root` into:
```bash
server.document-root = "/var/www/html/openmonero"
```
Restart lighttpd to see the change:
```bash
sudo systemctl restart lighttpd
```
Go to localhost (http://127.0.0.1) and check if frontend is working.
#### Run Open Monero
Command line options
```bash
./openmonero -h
-h [ --help ] [=arg(=1)] (=0) produce help message
-t [ --testnet ] [=arg(=1)] (=0) use testnet blockchain
--do-not-relay [=arg(=1)] (=0) does not relay txs to other nodes.
useful when testing construction and
submiting txs
--use-ssl [=arg(=1)] (=0) whether to use ssl (i.e., https) or
not.
-p [ --port ] arg (=1984) default port for restbed service of
Open Monero
-b [ --bc-path ] arg path to lmdb blockchain
-d [ --deamon-url ] arg (=http:://127.0.0.1:18081)
monero address string
-u [ --frontend-url ] arg (=http://127.0.0.1:81)
URl of the Open Monero frotnend.
-c [ --config-file ] arg (=./config/config.json)
Config file path.
```
## Scrap notes

@ -133,8 +133,9 @@ bool
CurrentBlockchainStatus::init_monero_blockchain()
{
// set monero log output level
uint32_t log_level = 0;
mlog_configure(mlog_get_default_log_path("open-monero.log"), true);
//uint32_t log_level = 0;
mlog_configure(mlog_get_default_log_path(""), true);
//mlog_set_log(std::string(std::to_string(log_level) + ",open-monero:INFO").c_str());
// initialize mcore and core_storage
if (!xmreg::init_blockchain(blockchain_path,

Loading…
Cancel
Save