mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Merge pull request #1729 from PowerShell/steve_demo_cleanup
cleaning up placeholder files, leaving dsc.ps1 as requested as stub f…
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
# Get-ApacheVHosts
|
||||
# Enumerate configured virtual hosts (web sites) on an apache server
|
||||
|
||||
# New-ApacheVHost
|
||||
# Given defined parameters, create a $ServerName.conf virtual host config file at $VHostsDirectory
|
||||
|
||||
# Get-ApacheModules
|
||||
# List installed Apache Modules
|
||||
|
||||
# Demo execution:
|
||||
# Run Get-ApacheVHosts and enumerate configured virtual hosts
|
||||
# Run Get-ApacheModules to show installed Apache modules
|
||||
# Run New-ApacheVHost to create a new virtual host and restart Apache
|
||||
# Run Get-ApacheVhosts to show the newly created virtual host
|
||||
@@ -1,11 +0,0 @@
|
||||
# Get-Mongostat
|
||||
# Get mongodb statistics with parsed JSON
|
||||
|
||||
# journalctl is a native tool to emit SystemD's journal, which includes diagnostic info pertaining to SystemD services
|
||||
# Show-JournalCtl
|
||||
# Given journalctl parameters, run journalctl with a -o json to emit JSON, e.g. journalctl $Parameters -o json --no-pager
|
||||
# Return structured data from Journal
|
||||
|
||||
# Demo execution
|
||||
# Show journatcl example
|
||||
# Using Where & Sort, filter journal output to drill into a specific problem (e.g. service failed to start)
|
||||
@@ -1 +0,0 @@
|
||||
# Samples
|
||||
@@ -1,2 +0,0 @@
|
||||
# Show PSRP working over OpenSSH
|
||||
# Includes Windows -> Linux and Linux -> Windows
|
||||
@@ -1,42 +0,0 @@
|
||||
Dev: XML legacy [ETS?]
|
||||
What are some xml workloads we can simplify with XML parsing?
|
||||
Maybe cracking open some repository metadata?
|
||||
JEE servers use XML pretty extensively for configuration. Perhaps a script to adjust JEE server settings? Obviously, parsing XML in bash is fraught with danger...
|
||||
|
||||
PS /etc/tomcat> $tomcatserverfile="/usr/share/tomcat/conf/server.xml"
|
||||
PS /etc/tomcat> [xml]$tomcatconfig=Get-Content $tomcatserverfile
|
||||
PS /etc/tomcat> $tomcatconfig.Server
|
||||
|
||||
|
||||
port : 8005
|
||||
shutdown : SHUTDOWN
|
||||
#comment : { Security listener. Documentation at /docs/config/listeners.html
|
||||
<Listener className="org.apache.catalina.security.SecurityListener" />
|
||||
, APR library loader. Documentation at /docs/apr.html , Initialize Jasper prior to webapps are loaded. Documentation at
|
||||
/docs/jasper-howto.html , Prevent memory leaks due to use of particular java/javax APIs...}
|
||||
Listener : {Listener, Listener, Listener, Listener...}
|
||||
GlobalNamingResources : GlobalNamingResources
|
||||
Service : Service
|
||||
|
||||
|
||||
|
||||
|
||||
PS /etc/tomcat> $tomcatconfig.Server.port
|
||||
8005
|
||||
PS /etc/tomcat> $tomcatconfig.Server.Listener
|
||||
|
||||
className SSLEngine
|
||||
--------- ---------
|
||||
org.apache.catalina.core.AprLifecycleListener on
|
||||
org.apache.catalina.core.JasperListener
|
||||
org.apache.catalina.core.JreMemoryLeakPreventionListener
|
||||
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
|
||||
org.apache.catalina.core.ThreadLocalLeakPreventionListener
|
||||
|
||||
|
||||
PS /etc/tomcat> $tomcatconfig.Server.Service
|
||||
|
||||
name #comment
|
||||
---- --------
|
||||
Catalina {The connectors can use a shared executor, you can define one or more named thread pools, ...
|
||||
|
||||
Reference in New Issue
Block a user