首页 文章 精选 留言 我的

精选列表

搜索[命令行界面],共10007篇文章
优秀的个人博客,低调大师

Openstack 命令行集合

1, 使用nova boot命令创建虚拟机 1,指定IP ,指定flavor ,指定image,指定zone,指定host nova boot --flavor centos5.8_x64_30G --image 5d032bd2-0b3b-414d-9218-1ea326b46ecd --nic net-id=f80d5e53-2ae9-4800-89e3-9ebcd3d35d10,v4-fixed-ip=10.14.22.75 --nic net-id=5191dc70-43ed-4b89-801a-61d1c31fcfa8,v4-fixed-ip=192.168.0.75 --availability-zone=nova:kx-compute-59.kaixin.com commands nova boot --flavor centos5.8_x64_30G --image 5d032bd2-0b3b-414d-9218-1ea326b46ecd --availability-zone=nova:kx-compute-57.kaixin.com commandss 本文转自 swq499809608 51CTO博客,原文链接:http://blog.51cto.com/swq499809608/1393215

优秀的个人博客,低调大师

SDK命令行操作

* 使用前需要先在path中添加Android SDK的环境变量,跟Java JDK的配置相同 我当前目录如下:F:\Program\Android SDK\tools;F:\Program\Android SDK\platform-tools; // 查看所有的avd版本 android list avds // 查看所有可以创建的模拟器的版本 android list targets // 创建一个AVD,-n --> name,myavd --> name, -t表示要使用的版本,1表示API17 android create avd -n myavd -t -1 // 删除name为myavd的AVD android delete avd -n myavd // 启动AVD emulator -avd Nexus_4_API_17_2 // adb帮助文档 adb -h // 启动或关闭服务 adb start-server adb kill-server // 查询当前模拟器/设备的实例 adb devices // 安装、卸载、运行 adb -s emulator-5554[模拟器的name] install Hello.apk[***.apk] adb -s emulator-5554 uninstall con.heyan.Hello[程序包名] abd -s emulator-5554 shell am start -n cpm.heyan.Hello/com.heyan.Main // PC与模拟器/真机文件传输 // PC --> 设备(拷贝) adb -s emulator-5554 push /sdcard/1.jgp 2.jpg // 设备 --> PC(拷贝) adb -s emulator-5554 pull /sdcard/1.jgp 2.jpg // shell 命令 abd -s emulator-5554 shell // 创建SD卡(只在模拟器上) mksdcard -l sdcard 30MB ./sd.img

优秀的个人博客,低调大师

elasticsearch web界面查询

1、RESTful接口使用方法 为了方便直观我们使用Head插件提供的接口进行演示,实际上内部调用的RESTful接口。 RESTful接口URL的格式: http://localhost:9200/<index>/<type>/[<id>] 其中index、type是必须提供的。 id是可选的,不提供es会自动生成。 index、type将信息进行分层,利于管理。 index可以理解为数据库;type理解为数据表;id相当于数据库表中记录的主键,是唯一的。 2、索引文档的创建 将如下一条歌曲信息的数据提交到ES中创建索引: [plain] view plain copy url:http://127.0.0.1:9200/song001/list001/1 data:{"number":32768,"singer":"杨坤","size":"5109132","song":"今夜二十岁","tag":"中国好声音","timelen":319} 索引名字是:song001; 索引的类型是:list001; 本记录的id是:1 返回的信息可以看到创建是成功的,并且版本号是1;ES会对记录修改进行版本跟踪,第一次创建记录为1,同一条记录每修改一次就追加1。 至此一条记录就提交到ES中建立了索引,注意HTTP的方法是PUT,不要选择错了。 3、索引文档的查询 根据索引时的ID查询的文档的RESTful接口如下 url:http://127.0.0.1:9200/song001/list001/1 HTTP方法采用GET的形式。 4、索引文档的更新 根据索引时的ID更新的文档的内容其RESTful接口如下 url:http://127.0.0.1:9200/song001/list001/1 HTTP方法采用PUT的形式。 将歌手名由“杨坤”改成“杨坤独唱”; 结果中的version字段已经成了2,因为我们这是是修改,索引版本递增;created字段是false,表示这次不是新建而是更新。 更新接口与创建接口完全一样,ES会查询记录是否存在,如果不存在就是创建,存在就是更新操作。 5、索引文档的删除 根据索引时的ID更新的文档的内容其RESTful接口如下 url:http://127.0.0.1:9200/song001/list001/1 HTTP方法采用DELETE的形式。 删除过后,再通过查询接口去查询将得不到结果。 总结: 增删改查的RESTful接口URL形式:http://localhost:9200/<index>/<type>/[<id>] 增删改查分别对应:HTTP请求的PUT、GET、DELETE方法。PUT调用是如果不存在就是创建,已存在是更新。

优秀的个人博客,低调大师

Spring Roo 命令行说明

参考文档:http://projects.spring.io/spring-roo/#running-from-shell $ roo.sh _ ___ _ __ _ __(_)_ __ __ _ _ __ ___ ___ / __| '_ \| '__| | '_ \ / _` | | '__/ _ \ / _ \ \__ \ |_) | | | | | | | (_| | | | | (_) | (_) | |___/ .__/|_| |_|_| |_|\__, | |_| \___/ \___/ |_| |___/ 2.0.0.RC2 Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER. roo> roo> roo> help COMMAND INDEX !g Passes a command directly through to the Felix shell infrastructure. !os Allows execution of operating system (OS) commands. Ex.: `!os mkdir test_dir` */ End of block comment /* Start of block comment // Inline comment markers (start of line only) ; Inline comment markers (start of line only) addon create advanced Create a new advanced add-on for Spring Roo (commands + operations + metadata + trigger annotation + dependencies). addon create i18n Create a new internationalization add-on for Spring Roo, with a new language. with a new language.Created add-on can be installed later into a project for localizing the project to that new language. addon create simple Create a new simple add-on for Spring Roo (commands + operations). addon create suite Create a new Spring Roo Addon Suite for Spring Roo (two sample addons + repository + suite generator). addon create wrapper Create a new add-on for Spring Roo which wraps a maven artifact to create a OSGi compliant bundle. addon development mode Switches the system into development mode, which enables add-on development commands and shows greater diagnostic information. addon info bundle Provide information about a specific Spring Roo Add-on from installed repositories. addon install bundle Install Spring Roo Add-on from installed repositories. addon install url Install Spring Roo Add-on using an URL. addon list List all installed addons. addon remove Removes an installed Spring Roo Add-on. addon repository add Adds a new OBR Repository to ROO Shell. addon repository introspect Introspects all installed OBR Repositories and list all their addons. addon repository list Lists installed OBR Repositories. addon repository remove Removes an existing OBR Repository from ROO Shell. addon search Search all known Spring Roo Add-ons from installed repositories. addon suite install name Installs some 'Roo Addon Suite' from installed OBR Repository. addon suite install url Installs some 'Roo Addon Suite' from URL. addon suite list Lists all installed 'Roo Addon Suite'. If you want to list all available 'Roo Addon Suites' on Repository, use --repository parameter. addon suite start Starts some installed 'Roo Addon Suite'. By default, an installed 'Roo Addon Suite' is started automatically. addon suite stop Stops some started 'Roo Addon Suite'. addon suite uninstall Uninstalls some installed 'Roo Addon Suite'. backup Backups your project to a zip file located in root directory. cache setup Installs support for using intermediate memory in generated project by using Spring Cache abstraction. Users can specify different providers to use for managing it. class Creates a new Java class source file in any project path constructor Creates a class constructor. dto Creates a new DTO (Data Transfer Object) class in the directory _src/main/java_ of the selected project module (if any) with @RooDTO annotation. email receiver setup Installs a Spring JavaMailReceiver in your project. email sender setup Install a Spring JavaMailSender in your project embeddable Creates a new Java class source file with the JPA `@Embeddable` annotation in the directory _src/main/java_ of the selected project module (if any). entity jpa Creates a new JPA persistent entity in the directory _src/main/java_ of the selected project module (if any) with `@RooEntity` annotation. entity projection Creates new projection classes from entities in the directory _src/main/java_ of the selected project module (if any) annotated with `@RooEntityProjection`. Transient, static and entity collection fields are not valid for projections. enum constant Inserts a new enum constant into an enum class. enum type Creates a new Java enum source file in any project path. equals Add `equals()` and `hashCode()` methods to a class. exit Waits until all metadata and files are refreshed and updated, then exits the shell. You can also use `exit` command. field boolean Adds a private boolean field to an existing Java source file. field date Adds a private date field to an existing Java source file. field embedded Adds a private `@Embedded` field to an existing Java source file. This command is only available for entities annotated with `@RooJpaEntity` (Roo JPA entities). Therefore, you should focus the desired entity in the Roo Shell to make this command available. field enum Adds a private enum field to an existing Java source file. The field type must be a Java enum type. field file Adds a byte array field for storing uploaded file contents. field list Adds a private `List` field to an existing Java source file, representing (always) a bidirectional relation with other entity. Therefore, this command will also add a field on the other side of the relation (the owner side, with `mappedBy` attribute), which will be a `List` field for 'many-to-many' relations, or a *not* `Collection` field for a 'one-to-many' relation. All added fields will have the needed JPA annotations to properly manage bidirectional relations.This command is only available for entities annotated with `@RooJpaEntity` (Roo JPA entities). Therefore, you should focus the desired entity in the Roo Shell to make this command available. field number Adds a private numeric field to an existing Java source file. User can choose the field type between a wide range of numeric types. field other Inserts a private field into the specified file. User can choose a custom type for the field by specifying its fully qualified name. field reference Adds a private reference field, representing (always) a bidirectional 'one-to-one' relation, to an existing Java source file. Therefore, this command will add as well a 'one-to-one' field on the other side of the relation. This command is only available for entities annotated with `@RooJpaEntity`, so you should focus the desired entity in the Roo Shell to make this command available. field set Adds a private `Set` field to an existing Java source file, representing (always) a bidirectional relation with other entity. Therefore, this command will also add a field on the other side of the relation (the owner side, with `mappedBy` attribute), which will be a `Set` field for 'many-to-many' relations, or a *not* `Collection` field for a 'one-to-many' relation. All added fields will have the needed JPA annotations to properly manage bidirectional relations. This command is only available for entities annotated with `@RooJpaEntity` (Roo JPA entities). Therefore, you should focus the desired entity in the Roo Shell to make this command available. field string Adds a private String field to an existing Java source file. finder add Installs a finder in the given target (must be an entity). This command needs an existing repository for the target entity, you can create it with `repository jpa` command. The finder will be added to targeted entity associated repository and associated service if exists or when it will be created. focus Changes Roo Shell focus to a different type in the project. help Shows a summary of all Spring Roo commands. hint Provides step-by-step hints and context-sensitive guidance. interface Creates a new Java interface source file in any project path. jms receiver Creates an JMS receiver. jms sender Creates an JMS sender. jpa audit add Adds support for auditing a JPA entity. This will add JPA and Spring listeners to this entity to record the entity changes. jpa audit setup Installs audit support into your project, preparing it to audit entity changes. jpa setup Installs or updates a JPA persistence provider in your project. User can execute this command for diferent profiles with different persistence configurations. metadata cache Shows detailed metadata for the indicated type. metadata for id Shows detailed information about the metadata item. metadata for module Shows the ProjectMetadata for the indicated project module. metadata for type Shows detailed metadata for the indicated type. metadata status Shows metadata statistics of the current project. metadata trace Traces metadata event delivery notifications. module create Creates a new Maven module in current *multimodule* project. module focus Changes Roo Shell focus to a different project module, when in a multimodule project. process manager debug Indicates if process manager debugging is desired. It is only available if 'addon development mode' is true. project scan now Performs a manual file system scan, calling thread monitors and checking that all files are updated. project scan speed Changes the time inteval between file system scans. project scan status Displays file system scanning information such as the time lasted for last scan and scanning frequency. project setup Creates a new Maven project. property add Adds or updates a particular property from application config properties file. property list Lists all properties from an application config properties file. property remove Removes a particular property from application config properties file. push-in Allows to push-in elements declared in the ITDs to its .java files. You could specify `--all` option to apply push-in on every component of generated project, or you could define any package, class or method to apply push-in, combining them. quit Waits until all metadata and files are refreshed and updated, then exits the shell. You can also use `exit` command. reference guide Writes the reference guide XML fragments (in DocBook format) into the current working directory. It is only available if 'development mode' is `true`. repository jpa Generates new Spring Data repository for specified entity or for all entities in generated project. script Parses the specified resource file and executes its Roo commands. You can as well execute _*.roo_ example scripts in the Roo classpath. Ex.: `script --file clinic.roo`. security authorize Includes `@PreAuthorize` annotation to an specific method for controlling access to its invocation. security filtering Include `@PreFilter`/`@PostFilter` annotation to an specific method to filter results of a method invocation based on an expression. security setup Install Spring Security into your project. service Creates new service interface and its implementation related to an entity, or for all the entities in generated project, with some basic management methods by using Spring Data repository methods. settings add Adds or updates a Roo project setting, which can modify the configuration of some commands acting in the current project. These settings are located in _[PROJECT-ROOT]/.roo/config/project.properties_. settings list Lists all settings added into Roo project configuration. These settings are located in _[PROJECT-ROOT]/.roo/config/project.properties_. settings remove Removes a specific setting from Roo project configuration. Use 'settings list' to see the Roo settings added to the project. system properties Shows the shell's properties such as if 'addon development mode' is enabled, JVM version, file encoding... test integration Creates a new integration test class for the specified class. The generated test class will contain a basic structure and the necessary testing components. test unit Creates a unit test class with a basic structure and with the necessary testing components, for the specified class. version Displays Roo Shell banner and version. web flow Installs a Spring Web Flow into your project. web mvc controller Generates new `@RooController's` in the directory _src/main/java_ of the selected project module (if any). The generated controllers should manage specific entities in the project. web mvc detail Generates new `@RooController` for relation fields which detail wants to be managed. It must be a `@OneToMany` field. Generated controllers will have `@RooDetail` with info about the parent entity and the parent views where the detail will be displayed. web mvc exception handler Adds methods to handle an application exception in a specified controller or a class annotated with `@ControllerAdvice`. web mvc finder Publishes existing finders to web layer, generating controllers and additional views for them. It adds `@RooWebFinder` annotation to MVC controller type. web mvc language Installs new language in generated project views. Also, could be used to specify the default language of the project. web mvc setup Includes Spring MVC configuration on generated project. Needed for several MVC related commands. web mvc templates setup Includes view generation templates on current project. Will allow developers to customize view generation by modifying the templates from _[PROJECT-ROOT]/.roo/templates/..._ web mvc view setup Includes all necessary resources of provided response type on generated project. This response type will be needed by `web mvc controller`, `web mvc detail` and `web mvc templates setup` commands. ws client Generates a new Web Service client by the provided WSDL file. ws endpoint Generates a new Service Endpoint Interface (SEI) and its implementation. ** Type 'hint' (without the quotes) and hit ENTER for step-by-step guidance ** roo> hint Welcome to Roo! We hope you enjoy your stay! Before you can use many features of Roo, you need to start a new project. To do this, type 'project setup' (without the quotes) and then hit TAB. Enter a --topLevelPackage like 'com.mycompany.projectname' (no quotes). When you've finished completing your --topLevelPackage, press ENTER. Your new project will then be created in the current working directory. Note that Roo frequently allows the use of TAB, so press TAB regularly. Once your project is created, type 'hint' and ENTER for the next suggestion. You're also welcome to visit http://stackoverflow.com/questions/tagged/spring-roo for Roo help. roo>

资源下载

更多资源
Mario

Mario

马里奥是站在游戏界顶峰的超人气多面角色。马里奥靠吃蘑菇成长,特征是大鼻子、头戴帽子、身穿背带裤,还留着胡子。与他的双胞胎兄弟路易基一起,长年担任任天堂的招牌角色。

腾讯云软件源

腾讯云软件源

为解决软件依赖安装时官方源访问速度慢的问题,腾讯云为一些软件搭建了缓存服务。您可以通过使用腾讯云软件源站来提升依赖包的安装速度。为了方便用户自由搭建服务架构,目前腾讯云软件源站支持公网访问和内网访问。

Spring

Spring

Spring框架(Spring Framework)是由Rod Johnson于2002年提出的开源Java企业级应用框架,旨在通过使用JavaBean替代传统EJB实现方式降低企业级编程开发的复杂性。该框架基于简单性、可测试性和松耦合性设计理念,提供核心容器、应用上下文、数据访问集成等模块,支持整合Hibernate、Struts等第三方框架,其适用范围不仅限于服务器端开发,绝大多数Java应用均可从中受益。

Rocky Linux

Rocky Linux

Rocky Linux(中文名:洛基)是由Gregory Kurtzer于2020年12月发起的企业级Linux发行版,作为CentOS稳定版停止维护后与RHEL(Red Hat Enterprise Linux)完全兼容的开源替代方案,由社区拥有并管理,支持x86_64、aarch64等架构。其通过重新编译RHEL源代码提供长期稳定性,采用模块化包装和SELinux安全架构,默认包含GNOME桌面环境及XFS文件系统,支持十年生命周期更新。

用户登录
用户注册