2019 Week 24 (2019/06/10 ~ 2019/06/16)
- Achieve the checkbox button Github Markdown in
- Swift- custom UITableViewCell and View (XIB and pure code)
- Npm build private storage server for Windows systems, packaged and pushed to the private storage server npm
- nssm Deployment Services on Windows
Npm build private storage server Sinopia Windows system
- Installing Python
- Installation NodeJs
Installation Sinopia
1
npm install -g sinopia
Open port 4873 port
- Windows Firewall -> Advanced settings -> Inbound Rules -> New Rule -> port -> TCP, local specific port: 4873
Configuration Sinopia
- Open C: UsersAdministratorAppDataRoamingsinopiaconfig.yaml file (please Administrator Replace your windows user name)
- At the end of file add the following code, save and exit
1
2# listen ip and port
listen: 0.0.0.0:4873
New user (enter a user name, password, and email address)
1
npm adduser --registry http://10.100.254.163:4873
- Access and login (username / password: pdrc / pdrc)
Use nssm will Sinopia as a Windows service startup
- Download NSSM download
- According to their platform, the 32/64 nssm.exe extract the files to any folder.
- cmd Navigate to the directory nssm.exe.
- Enter nssm install {name} service, name of the service that is registered. NSSM registration services pop up the following interface.
- We want to execute the file is sinopia.cmd, the path is: C: UsersAdministratorAppDataRoamingnpmsinopia.cmd
After completing the path configuration, Startup directory is automatically configured, here we do not have to modify, click on [Install service] create a service:
Before you start to modify the service configuration to support IP address to access the
Open C: WindowsSystem32configsystemprofileAppDataRoamingsinopiaconfig.yaml file, add the following code at the end of the file, save and exit1
2# listen ip and port
listen: 0.0.0.0:4873Start the service:
After a successful start, Task Manager has node.exe process:
Native access http://10.100.254.163:4873
New user (enter a user name, password, and email address)
1
npm adduser --registry http://10.100.254.163:4873
Once you have created a user is successful, other machines can access and log the IP address.
Original: Big Box 2019 Week 24