Java

Javaコード
DbConn.properties
initialSize=1
maxActive=1
maxIdle=1
maxWait=10000
username=xxx ...

Linux

操作コマンド

#sudo yum -y install nginx
# sudo/sbin/iptables -I INPUT 5 -p tcp -m tcp –dport 80 -j ACCEPT

Linux

# cat/etc/redhat-release
CentOS Linux release 7.3.1611 (Core)

# vim/etc/firewalld/zones/public.xml
< ...

Linux

CentOSのバージョンは、/etc/redhat-releaseファイル
# cat/etc/redhat-release
CentOS Linux release 7.3.1611 (Core)

JavaScript

1.test()
var str = “1a1b1c”;
var reg = new RegExp(“1.”, “”);
alert(re ...

Java

Javaコード
HttpSession session = request.getSession();
session.setAttribute(“demo_startnews24”, R ...

Java

Javaコード
public class Demo {

public static void main(String[] args) {
String text = “”; ...

Linux

1.エラー現象
$ sudo su
password for mastodon:
mastodon is not in the sudoers file. This incident will be repor ...

PHP

方法1–Smarty
<?php
require(“smarty/Smarty.class.php”);
$t = new Smarty;
$t->ass ...

MySQL

方法1
SELECT *
FROM changfatbl AS r1 JOIN
(SELECT ROUND(RAND() *
(SELECT MAX(id)
FROM changfatbl)) ...